webpack-svgstore-plugin
webpack-svgstore-plugin copied to clipboard
Simple svg-sprite creating with webpack
I am trying to request my built svg sprite from webpack-dev-server however am getting a 404 (Not Found). This is because `__svg__` is requesting the built sprite from my rails...
I took a couple of hours to debug this issues and, thanks to @webmarkelov "[change the ajax path request?](https://github.com/mrsum/webpack-svgstore-plugin/issues/135)", I found a workaround that looks like an hack. ``` //...
Somehow __svg__ doesn't get assigned evaluated expression values. `createTaskContext` fails on ``` expr.init.properties.forEach(function (prop) { switch (prop.key.name) { case 'name': data.fileName = prop.value.value; break; case 'path': data.path = prop.value.value; break;...
Hey, I'd really like to be able to use this in a project I'm working on. However, since the update to the latest version I can't seem to find an...
When i try it on dev it works perfect, when Im trying this on production its calling with a weird url. ```https://www.mydomaincom/https://www.mydomaincom/static/1487869309421.icons.svg``` webpack.base.js ``` var SvgStore = require('webpack-svgstore-plugin'); var plugins...
Hi, I've tried v4.0 and webpack2 and I'm having an issue with webpack-dev-sever not serving svg sprite over ajax request (404). This is string from my app const __svg__ =...
Instead of loading asynchronously the generated .svg file, is there a way to retrieve synchronously it's content in a js file in order to insert it in the webpage the...
Using [`rollup-loader`](https://www.npmjs.com/package/rollup-loader) to utilize treeshaking removes all function marks like `var __svg__`, `var __sprite__`, etc. Hence no sprites get generated. I suppose to put this configs inside the webpack config...
When assetsPublicPath in webpack isnt "/", module not add it to svg url in xhr
usage code: ``` import svgxhr from 'webpack-svgstore-plugin/src/helpers/svgxhr'; import React, { PropTypes } from 'react'; const __svg__ = { path: './svg/**/*.svg', name: '/images/svg/[hash].icon.svg' }; svgxhr(__svg__); ``` Network panel on dev tools...