weilaizhixing_official_website/vue.config.js

23 lines
412 B
JavaScript
Raw Permalink Normal View History

2024-10-21 15:59:15 +08:00
const { defineConfig } = require('@vue/cli-service');
module.exports = defineConfig({
css: {
loaderOptions: {
less: {
lessOptions: {
javascriptEnabled: true,
},
},
},
},
devServer: {
port: 80,
proxy: {
[process.env.VUE_APP_API_BASE_URL]: {
target: process.env.VUE_APP_API_TARGET_URL,
changeOrigin: true,
},
},
},
});