36 lines
615 B
JavaScript
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"
|
|
}
|
|
};
|