初始化
This commit is contained in:
24
vue.config.js
Normal file
24
vue.config.js
Normal file
@@ -0,0 +1,24 @@
|
||||
const { defineConfig } = require('@vue/cli-service');
|
||||
|
||||
module.exports = defineConfig({
|
||||
devServer: {
|
||||
client: {
|
||||
overlay: false, // 重点:新版写法
|
||||
|
||||
},
|
||||
historyApiFallback: true,
|
||||
},
|
||||
transpileDependencies: true,
|
||||
publicPath: './', // 必须是相对路径,否则打包后图片路径会出错
|
||||
css: {
|
||||
loaderOptions: {
|
||||
postcss: {
|
||||
postcssOptions: {
|
||||
plugins: [
|
||||
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user