This commit is contained in:
clay
2022-09-25 12:53:43 +08:00
parent 362b39a1a8
commit b7e8c3609b
9 changed files with 145 additions and 107 deletions

View File

@@ -28,10 +28,10 @@ module.exports = {
// 如果你不需要生产环境的 source map可以将其设置为 false 以加速生产环境构建。
productionSourceMap: true,
// webpack-dev-server 相关配置
// devServer: {
devServer: {
// host: '0.0.0.0',
// // port: port,
// port: 8080,
port: 8080,
// open: true,
// proxy: {
// // detail: https://cli.vuejs.org/config/#devserver-proxy
@@ -45,7 +45,7 @@ module.exports = {
// }
// },
// disableHostCheck: true
// },
},
// 强制内联CSS
// 默认true: 使用CSS分离插件 ExtractTextPlugin采用独立样式文件载入不采用 <style> 方式内联至 html 文件中
css: { extract: false },