Skip to content

Commit 9ccaf2d

Browse files
authored
fix webpack config
1 parent 2dfa95e commit 9ccaf2d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

webpack.config.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1-
'use strict';
1+
use strict';
2+
3+
// With this configuration, the entire library can be bundled with Webpack.
4+
// However, not all services support client-side usage.
5+
// See https://github.com/watson-developer-cloud/node-sdk/tree/master/examples/webpack for details
26

37
module.exports = {
48
entry: './index.js',
59
output: {
6-
filename: 'bundle.js'
10+
filename: 'watson-developer-cloud.js',
11+
library: 'WatsonDeveloperCloud',
12+
libraryTarget: 'umd'
713
},
814
// http://webpack.github.io/docs/configuration.html#node
915
node: {

0 commit comments

Comments
 (0)