didi / mand-mobile

💰 A mobile UI toolkit, based on Vue.js 2, designed for financial scenarios.
https://didi.github.io/mand-mobile
Apache License 2.0
3.46k stars 772 forks source link

自定义svg图标 #669

Closed ming2882 closed 4 years ago

ming2882 commented 4 years ago

vue cli3 按写的要求做了,把const path = require('path')

module.exports = { module: { loaders: [ { test: /.svg$/i, loader: 'svg-sprite-loader', include: [ // 将某个路径下所有svg交给 svg-sprite-loader 插件处理 path.resolve(__dirname, 'src/my-project-svg-folder') ], } ] } }加到vue.config.js会报错的。没有module个 能给个具体的的方法吗?

xxyan0205 commented 4 years ago

https://github.com/mand-mobile/vue-cli3-example/tree/custom-theme