devServer: {
contentBase: path.join(__dirname, 'dist'),
compress: true,
port: 9000
},
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'js/[name].min.js',
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"watch": "webpack --watch",
"start": "webpack-dev-server --open",
"build": "webpack --env.production"
}
当我运行npm start时,浏览器始终无法获取/。