44 lines
941 B
JavaScript
44 lines
941 B
JavaScript
|
|
module.exports = {
|
|
// Required for main server. Must be removed for test server.
|
|
// Config the main or test server inside src/axios.js
|
|
publicPath: '/app/',
|
|
|
|
transpileDependencies: [
|
|
'vue-echarts',
|
|
'resize-detector'
|
|
],
|
|
configureWebpack: {
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.less$/,
|
|
loader: 'less-loader',
|
|
options: {
|
|
lessOptions: { // If you are using less-loader@5 please spread the lessOptions to options directly
|
|
modifyVars: {
|
|
'primary-color': '#3A3DBE',
|
|
'link-color': '#1DA57A',
|
|
'border-radius-base': '3px',
|
|
},
|
|
javascriptEnabled: true,
|
|
},
|
|
},
|
|
}
|
|
],
|
|
},
|
|
optimization: {
|
|
splitChunks: {
|
|
chunks: 'all'
|
|
}
|
|
}
|
|
}
|
|
// devServer: {
|
|
// overlay: {
|
|
// warnings: true,
|
|
// errors: true
|
|
// }
|
|
// }
|
|
}
|
|
|