Skip to content

Commit e5d9e60

Browse files
authored
modified webpack.config
Added added library cookiecutter.npm_package_name to webpack config embedding bundle
1 parent 417ad42 commit e5d9e60

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

{{cookiecutter.github_project_name}}/webpack.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ module.exports = [
6767
filename: 'index.js',
6868
path: path.resolve(__dirname, 'dist'),
6969
libraryTarget: 'amd',
70+
library: "{{ cookiecutter.npm_package_name }}",
7071
publicPath: 'https://unpkg.com/{{ cookiecutter.npm_package_name }}@' + version + '/dist/'
7172
},
7273
devtool: 'source-map',

0 commit comments

Comments
 (0)