Skip to content

Commit

Permalink
Update Webpack in example project to version 5 (#173)
Browse files Browse the repository at this point in the history
| Package | Current | Updated to |
| --- | --- | --- |
| webpack | 4.22.0 | 5.65.0 |
| webpack-cli | 3.1.2 | 4.9.1 |
| webpack-dev-server | 3.1.10 | 4.7.2 |

The updates resolve Dependabot alerts for the following packages:

- glob-parent;
- ansi-html;
- ansi-regex.

As of now there are also alerts for `json-schema` and `trim-off-newlines`,
but those are dependencies of `lerna` 4.0.0, which does not have an
update yet.

Signed-off-by: Rodrigo Pinto <rodrigo.pinto@calian.ca>
  • Loading branch information
Rodrigoplp-work authored Jan 13, 2022
1 parent 863606e commit 1877109
Show file tree
Hide file tree
Showing 3 changed files with 745 additions and 2,264 deletions.
10 changes: 5 additions & 5 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@
"scripts": {
"build": "webpack --mode=development",
"watch": "webpack --watch --mode=development",
"start": "webpack-dev-server --host 0.0.0.0 --mode=development"
"start": "webpack serve --host 0.0.0.0 --mode=development"
},
"devDependencies": {
"@types/lodash.throttle": "^4.1.4",
"@types/node": "^8.0.26",
"file-loader": "^2.0.0",
"source-map-loader": "^0.2.4",
"ts-loader": "^5.2.2",
"webpack": "^4.22.0",
"webpack-cli": "^3.1.2",
"webpack-dev-server": "^3.1.10"
"ts-loader": "9.2.6",
"webpack": "^5.65.0",
"webpack-cli": "^4.9.1",
"webpack-dev-server": "^4.7.2"
},
"dependencies": {
"lodash.throttle": "^4.1.1",
Expand Down
6 changes: 3 additions & 3 deletions example/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ module.exports = {
entry: ['./src/index.ts'],
devtool: "source-map",
devServer: {
contentBase: path.join(__dirname, 'public'),
disableHostCheck: true,
static: path.join(__dirname, 'public'),
allowedHosts: 'all',
hot: true
},
module: {
Expand Down Expand Up @@ -39,4 +39,4 @@ module.exports = {
filename: 'bundle.js',
path: path.resolve(__dirname, 'lib')
}
};
};
Loading

0 comments on commit 1877109

Please sign in to comment.