1 Star 0 Fork 2

qiusy0515 / MiMall

forked from 殷晨东 / MiMall 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vue.config.js 1008 Bytes
一键复制 编辑 原始数据 按行查看 历史
殷晨东 提交于 2020-02-22 18:59 . 删除预加载的js文件
const path = require('path')
// 代理方式:
module.exports={
devServer:{
host:'localhost',
port:8080,
proxy:{
'/api':{
target:'http://mall-pre.springboot.cn',
changeOrigin:true,
pathRewrite:{
'/api':''
}
}
}
},
chainWebpack: config => {
const types = ['vue-modules', 'vue', 'normal-modules', 'normal']
types.forEach(type => addStyleResource(config.module.rule('less').oneOf(type)))
// 删除预加载的路由
config.plugins.delete('prefetch')
},
// eslint:
lintOnSave:false,
}
function addStyleResource (rule) {
rule.use('style-resource')
.loader('style-resources-loader')
.options({
patterns: [
// 在此处添加less的mixin和变量
path.resolve(__dirname, './src/assets/less/less_reset.less'),
path.resolve(__dirname, './src/assets/less/config.less')
],
})
}
1
https://gitee.com/qiusy0515/MiMall.git
git@gitee.com:qiusy0515/MiMall.git
qiusy0515
MiMall
MiMall
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891