在webpack.config.js文件中,
在module.export = {
}
中的devServer中添加:
port: 8888,
devServer: {
historyApiFallback: true,
noInfo: true,
port: 8888,
},
本文介绍如何在Webpack配置文件中设置开发服务器的相关参数,包括指定端口为8888及启用historyApiFallback等功能。
在webpack.config.js文件中,
在module.export = {
}
中的devServer中添加:
port: 8888,
devServer: {
historyApiFallback: true,
noInfo: true,
port: 8888,
},
421
2301
280
2566
900
992

被折叠的 条评论
为什么被折叠?