Skip to content

Commit

Permalink
web: use webpack-dev-server instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Artoria2e5 committed Apr 20, 2021
1 parent d8be3b7 commit 7cdc932
Show file tree
Hide file tree
Showing 3 changed files with 1,820 additions and 452 deletions.
4 changes: 2 additions & 2 deletions web/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"scripts": {
"start": "webpack-serve --live-reload",
"start": "webpack serve",
"build": "env NODE_ENV=production webpack-cli",
"format": "prettier src/**/*.js src/**/*.css *.config.js --write",
"deploy": "gh-pages -d dist",
Expand All @@ -23,7 +23,7 @@
"prettier": "^2.2.1",
"webpack": "^5.34.0",
"webpack-cli": "^4.6.0",
"webpack-serve": "^4.0.0"
"webpack-dev-server": "^3.11.2"
},
"dependencies": {
"escape-html": "^1.0.3",
Expand Down
2 changes: 1 addition & 1 deletion web/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module.exports = {
minify: true,
}),
new MiniCssExtractPlugin({
filename: 'style.[hash].css',
filename: 'style.[contenthash].css',
}),
new CopyWebpackPlugin({
patterns: [
Expand Down
Loading

0 comments on commit 7cdc932

Please sign in to comment.