We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2dfa95e commit 9ccaf2dCopy full SHA for 9ccaf2d
webpack.config.js
@@ -1,9 +1,15 @@
1
-'use strict';
+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
6
7
module.exports = {
8
entry: './index.js',
9
output: {
- filename: 'bundle.js'
10
+ filename: 'watson-developer-cloud.js',
11
+ library: 'WatsonDeveloperCloud',
12
+ libraryTarget: 'umd'
13
},
14
// http://webpack.github.io/docs/configuration.html#node
15
node: {
0 commit comments