8 Star 26 Fork 44

wibim / gps180-vue

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vue.config.js 994 Bytes
一键复制 编辑 原始数据 按行查看 历史
wibim 提交于 2023-11-08 15:52 . 修改编译
const path = require('path')
function resolve(dir) {
return path.join(__dirname, '.', dir)
}
module.exports = {
// lintOnSave: false,
assetsDir: 'static',
productionSourceMap: false,
devServer: {
proxy: {
'/api': {
target: 'http://g.ccwcar.cn',
changeOrigin: true,
secure: false,
pathRewrite: {
'^/api': '/api',
},
},
},
inline: false,
disableHostCheck: true,
},
css: {
loaderOptions: {
scss: {
prependData: `
@import "@/assets/styles/index.scss";
`,
},
},
},
chainWebpack: (config) => {
config.module
.rule('svg')
.exclude.add(resolve('src/components/zIcon'))
.end()
config.module
.rule('icons')
.test(/\.svg$/)
.include.add(resolve('src/components/zIcon'))
.end()
.use('svg-sprite-loader')
.loader('svg-sprite-loader')
.options({
symbolId: 'icon-[name]',
})
},
}
JavaScript
1
https://gitee.com/wibim/gps180-vue.git
git@gitee.com:wibim/gps180-vue.git
wibim
gps180-vue
gps180-vue
master

搜索帮助