From 2f3695cf0962c35021e6ad76495e7a38e7d3878d Mon Sep 17 00:00:00 2001 From: zhangshuaibao <15731629597@163.com> Date: 星期四, 25 三月 2021 17:10:40 +0800 Subject: [PATCH] Merge branch 'develop' of http://xearth.cn:6600/r/wuyushui/SewerAndRainNetwork into develop --- vue.config.js | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/vue.config.js b/vue.config.js index be07b5a..07df932 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,5 +1,5 @@ const appConfig = require('./src/app.config') - +const path = require('path') module.exports = { publicPath: process.env.NODE_ENV === 'production' ? `/${appConfig.projectName}/` : '/', configureWebpack: config => { @@ -16,6 +16,14 @@ }, parallel: require('os').cpus().length > 1, // 鏋勫缓鏃跺紑鍚杩涚▼澶勭悊babel缂栬瘧 productionSourceMap: false, + pluginOptions: { + 'style-resources-loader': { + preProcessor: 'less', + patterns: [ + path.resolve(__dirname, './src/assets/css/map/_map-variable.less') + ] + } + }, devServer: { // host: 'localhost', // open: true, -- Gitblit v1.8.0