Files
sgt_ca_app/vue.config.js
2024-12-12 14:38:59 +08:00

36 lines
615 B
JavaScript

module.exports = {
publicPath: "/spa",
css: {
loaderOptions: {
less: {
// lessOptions: {
javascriptEnabled: true
// }
}
}
},
// devServer: {
// proxy: "http://localhost:42127"
// },
devServer: {
proxy: {
'/api2': {
target: 'http://10.19.94.51:11684',
changeOrigin: true,
pathRewrite: { '^/api2': '' }
}
}
},
chainWebpack: config => {
config.module
.rule("eslint")
.use("eslint-loader")
.options({
fix: true
});
},
configureWebpack: {
devtool: "source-map"
}
};