We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8474bab commit 74720b5Copy full SHA for 74720b5
1 file changed
webpack.config.js
@@ -5,7 +5,7 @@ const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
5
const isProduction = process.env.NODE_ENV === 'production';
6
const mode = isProduction ? 'production' : 'development';
7
8
-const libraryName = 'js-library-boilerplate';
+const libraryName = 'logger';
9
10
module.exports = {
11
mode,
@@ -17,10 +17,10 @@ module.exports = {
17
output: {
18
path: path.resolve(__dirname, 'dist'),
19
filename: '[name].js',
20
- library: libraryName,
21
- libraryTarget: 'umd',
+ library: 'Logger',
+ libraryExport: 'default',
22
umdNamedDefine: true,
23
- globalObject: "typeof self !== 'undefined' ? self : this"
+ globalObject: `(typeof self !== 'undefined' ? self : this)`
24
},
25
module: {
26
rules: [
0 commit comments