webpack-svgstore-plugin
webpack-svgstore-plugin copied to clipboard
Simple svg-sprite creating with webpack
Hello there, I am having problems with resolving the correct URL path for the SVG file generated by the plugin. When I upload my project to a standard domain, for...
Fixes the error given for compiled svg's using xlinks: `XML-interpretation error: the prefix is not bound to a namespace`
Hey! I've noticed this project has a couple of issues and a few standing PRs - mainly to help bring the plugin back to webpack 4. Id hate for the...
``` import svgxhr from 'webpack-svgstore-plugin/src/helpers/svgxhr'; const __svg__ = { path: '../../assets/svg/**/*.svg', name: 'assets/svg/[hash].logos.svg' }; svgxhr(__svg__); ``` I get this in my Chrome console: VM21594:1 GET http://localhost:3000/http://localhost:3000/assets/svg/1494566510680.logos.svg 404 (Not Found) If...
Per these instructions: https://github.com/webpack/webpack/issues/6568#issuecomment-377491754 I wanted to report that latest 4.1.0 is giving warnings under webpack ^4.28.1 
This should fix the npm security audit warnings for anyone consuming this library (you can see them in npm v6.4.1 or above)
I am not understand how it works this plugin I add this to my webpack config ``` const SvgStore = require('webpack-svgstore-plugin'); .... plugins: [ new SvgStore( path.resolve(__dirname, './mobile/web/img/svg-icons/*.svg'), path.resolve(__dirname, './mobile/web/dist/img/'),...
Hi My Webpack config : ``` new SvgStore( path.resolve(__dirname, './../src/img/icons/*.svg'), path.resolve(__dirname, './../dist/assets/icons/'), { name: 'icons', prefix: 'icon-', chunk: 'svg', svgoOptions: { plugins: [ { removeTitle: true, }, ], }, }...
This is more of a question than an bug. How can i name the icons icon-[folder]-[filename]. I guess it can be done with the template some how.
"webpack": "^2.6.0", "webpack-svgstore-plugin": "^4.0.1" ``` // in component/Icon.js import svgxhr from 'webpack-svgstore-plugin/src/helpers/svgxhr'; const __svg__ = { path: '../../assets/icons/*.svg', name: 'sprite.svg', }; svgxhr(__svg__);``` // webpack.config.js const SvgStore = require('webpack-svgstore-plugin'); new SvgStore(),...