Skip to content

Commit

Permalink
Fix webpack config
Browse files Browse the repository at this point in the history
  • Loading branch information
warnyul committed Jan 26, 2022
1 parent 0c4851f commit cfdb26c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "src/index.html",
"scripts": {
"build": "webpack --config webpack.config.js",
"start": "npx webpack serve --mode=development"
"start": "npx webpack serve --mode development --config webpack.config.js --stats verbose"
},
"repository": {
"type": "git",
Expand Down
4 changes: 3 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ module.exports = {
mode: "production",
entry: './src/js/index.js',
output: {
strictModuleErrorHandling: true,
path: path.resolve(__dirname, 'dist'),
filename: 'bundle.js',
filename: 'bundle.js'
},
module: {
rules: [
Expand Down Expand Up @@ -53,6 +54,7 @@ module.exports = {
keep_classnames: undefined,
keep_fnames: false,
safari10: false,
sourceMap: true,
}
}),
],
Expand Down

0 comments on commit cfdb26c

Please sign in to comment.