Skip to content

Commit

Permalink
update webpack version
Browse files Browse the repository at this point in the history
  • Loading branch information
salgum1114 committed Aug 30, 2024
1 parent e381fc9 commit a630985
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 14 deletions.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
package-lock=false
legacy-peer-deps=true
node-options=--openssl-legacy-provider
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
"url-loader": "^4.1.0",
"webpack": "^4.46.0",
"webpack-cli": "^4.9.1",
"webpack-dev-server": "^3.11.3",
"webpack-dev-server": "^4.15.1",
"webpack-merge": "^4.2.2",
"workbox-webpack-plugin": "^5.1.2"
}
Expand Down
18 changes: 5 additions & 13 deletions webpack.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,14 @@ module.exports = merge(baseConfig, {
chunkFilename: '[id].[hash:16].js',
},
devServer: {
inline: true,
port: devPort,
contentBase: path.resolve(__dirname, 'public'),
hot: true,
publicPath: '/',
historyApiFallback: true,
host,
proxy: {
'/api': {
target: 'http://localhost',
},
'/api/ws': {
target: 'ws://localhost',
ws: true,
},
static: {
publicPath: '/',
directory: path.resolve(__dirname, 'public'),
watch: false,
},
historyApiFallback: true,
headers: {
'X-Frame-Options': 'sameorigin',
},
Expand Down

0 comments on commit a630985

Please sign in to comment.