6 Star 0 Fork 0

小白/黑马面面

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
vue.config.js 647 Bytes
一键复制 编辑 原始数据 按行查看 历史
小白 提交于 2021-10-30 13:41 . 项目初始化
const path = require('path')
module.exports = {
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/xiaobai-232/black-horse-noodles.git
git@gitee.com:xiaobai-232/black-horse-noodles.git
xiaobai-232
black-horse-noodles
黑马面面
master

搜索帮助