Files
tkAiPage/vue.config.js

27 lines
578 B
JavaScript
Raw Normal View History

2025-07-01 21:36:08 +08:00
const { defineConfig } = require('@vue/cli-service');
module.exports = defineConfig({
devServer: {
2025-08-13 15:24:45 +08:00
// client: {
// overlay: false, // 重点:新版写法
2025-07-01 21:36:08 +08:00
2025-08-13 15:24:45 +08:00
// },
2025-07-01 21:36:08 +08:00
historyApiFallback: true,
},
transpileDependencies: true,
publicPath: './', // 必须是相对路径,否则打包后图片路径会出错
css: {
loaderOptions: {
postcss: {
postcssOptions: {
plugins: [
]
}
2025-07-15 13:45:36 +08:00
},
less: {
additionalData: `@import "@/static/css/app.less";` // 注入全局变量文件
2025-07-01 21:36:08 +08:00
}
}
}
});