vue loader different loaders for one extension
问题 I'm currently trying to use SVG in my vue-loader/webpack template project. I need to load different kind of SVGs : Icons : used inside my components and loaded with svg-inline loader for inlining and customization with css. SVGImages : used inside img tag or background images loaded with url loader like the other images. I tried the following configuration inside webpack.base.conf.js : { test: /\.svg$/, oneOf: [ { resourceQuery: /ico/, // image.svg?ico, use: 'svg-inline-loader' }, {