Updated webpack-dev-server to 4.6.0
This commit is contained in:
Generated
+996
-4456
File diff suppressed because it is too large
Load Diff
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "mern-template",
|
"name": "mern-template",
|
||||||
"version": "1.0.6",
|
"version": "1.1.0",
|
||||||
"description": "A website template using the MERN stack.",
|
"description": "A website template using the MERN stack.",
|
||||||
"main": "server/server.js",
|
"main": "server/server.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@@ -57,6 +57,6 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"nodemon": "^2.0.12",
|
"nodemon": "^2.0.12",
|
||||||
"webpack-dev-server": "^3.11.2"
|
"webpack-dev-server": "^4.6.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+9
-33
@@ -83,41 +83,17 @@ module.exports = ({ production, analyze }) => {
|
|||||||
})
|
})
|
||||||
],
|
],
|
||||||
devServer: {
|
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,
|
hot: true,
|
||||||
injectHot: true
|
host: 'localhost',
|
||||||
|
port: 3001,
|
||||||
|
client: {
|
||||||
|
overlay: {
|
||||||
|
errors: true,
|
||||||
|
warnings: true,
|
||||||
},
|
},
|
||||||
watchOptions: {
|
},
|
||||||
ignored: /(node_modules)/
|
|
||||||
|
static: '/public'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user