Webpack How To Load Svg. Svg loader. Viewed 14k times 9 Id like to load SVG files using svgo-loader in Webpack but I get the following error.
Npm install file-loader --save-dev 2. Webpack Inline SVG Loader This one is from official webpack contrib. Add file-loader to webpackconfigjs.
Webpack Inline SVG Loader This one is from official webpack contrib.
Svg loader. Install file-loader by running one of the following commands. How I can load SVG images in html and background. If you want to use svg files you have to add a file-loader in your webpackdevjs and webpackprodjs config files in rules.