3 Star 0 Fork 0

coolshuai/hmmm-frontend-111-08

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
vue.config.js 667 Bytes
Copy Edit Raw Blame History
coolshuai authored 2020-11-11 09:51 . info
const path = require('path')
module.exports = {
publicPath: './',
lintOnSave: false,
chainWebpack: config => {
const svgRule = config.module.rule('svg')
svgRule.uses.clear()
svgRule
.test(/.svg$/)
.include.add(path.resolve(__dirname, './src/icons/svg'))
.end()
.use('svg-sprite-loader')
.loader('svg-sprite-loader')
.options({
symbolId: 'icon-[name]'
})
const fileRule = config.module.rule('file')
fileRule.uses.clear()
fileRule
.test(/.svg$/)
.exclude.add(path.resolve(__dirname, './src/icons/svg'))
.end()
.use('file-loader')
.loader('file-loader')
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/coolshuai6666/hmmm-frontend-111-08.git
git@gitee.com:coolshuai6666/hmmm-frontend-111-08.git
coolshuai6666
hmmm-frontend-111-08
hmmm-frontend-111-08
master

Search