Updated webpack-dev-server to 4.6.0

This commit is contained in:
2021-12-20 07:07:36 +00:00
parent 829cb2e3da
commit d37b93d5f7
3 changed files with 1010 additions and 4494 deletions
+998 -4458
View File
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "mern-template",
"version": "1.0.6",
"version": "1.1.0",
"description": "A website template using the MERN stack.",
"main": "server/server.js",
"scripts": {
@@ -57,6 +57,6 @@
},
"devDependencies": {
"nodemon": "^2.0.12",
"webpack-dev-server": "^3.11.2"
"webpack-dev-server": "^4.6.0"
}
}
+10 -34
View File
@@ -83,41 +83,17 @@ module.exports = ({ production, analyze }) => {
})
],
devServer: {
contentBase: path.resolve(__dirname, 'public'),
compress: true,
port: 3001,
proxy: {
'/api/': 'http://localhost:3000/'
},
overlay: {
errors: true
},
stats: {
colors: true,
hash: false,
version: false,
timings: false,
assets: false,
chunks: false,
modules: false,
reasons: false,
children: false,
source: false,
errors: true,
errorDetails: false,
warnings: true,
publicPath: false
},
host: '0.0.0.0',
disableHostCheck: true,
clientLogLevel: 'silent',
historyApiFallback: true,
hot: true,
injectHot: true
},
watchOptions: {
ignored: /(node_modules)/
host: 'localhost',
port: 3001,
client: {
overlay: {
errors: true,
warnings: true,
},
},
static: '/public'
}
}
};