Upgrade webpack

This commit is contained in:
Will Scullin 2021-11-26 13:01:08 -08:00
parent 07486c13a7
commit 44ac4c83b5
No known key found for this signature in database
GPG Key ID: 26DCD1042C6638CD
3 changed files with 2967 additions and 6946 deletions

9888
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -33,11 +33,11 @@
"eslint": "^5.16.0", "eslint": "^5.16.0",
"jest": "^26.4.2", "jest": "^26.4.2",
"node-forge": "^0.10.0", "node-forge": "^0.10.0",
"webpack": "^4.29.6", "webpack": "^5.64.4",
"webpack-cli": "^3.2.3", "webpack-cli": "^4.9.1",
"webpack-dev-server": "^3.11.0" "webpack-dev-server": "^4.6.0"
}, },
"dependencies": { "dependencies": {
"micromodal": "^0.3.2" "micromodal": "^0.4.2"
} }
} }

View File

@ -2,6 +2,7 @@ const path = require('path');
module.exports = module.exports =
{ {
mode: 'development',
devtool: 'source-map', devtool: 'source-map',
entry: { entry: {
apple1: path.resolve('js/entry1.js') apple1: path.resolve('js/entry1.js')
@ -14,10 +15,14 @@ module.exports =
}, },
devServer: { devServer: {
compress: true, compress: true,
publicPath: '/dist/', static: {
watchContentBase: true, watch: {
watchOptions: { ignored: /(node_modules|test|\.git)/
ignored: /node_modules/ },
} directory: __dirname,
} },
devMiddleware: {
publicPath: '/dist/',
},
},
}; };