sorrycc / blog

💡

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

请问roadhog2.0如何配置svg?

birdycn opened this issue · comments

Hello,I'm a newcomer of GitHub.
May I ask you a question, please.
Through the topic,you have successfully used svg-sprite-loader in roadhog2.0, how your webpack.config.js is configured.

My webpack.config.js is as follows, and it's report errors:require(...) is not a function.
module.exports = { module: { loaders: [ { test: /.svg$/, loader: 'svg-sprite-loader' } ] } }