-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use without html-webpack-plugin ? #12
Comments
Hello ! I haven't use KSS yet so I'm not sure the solution I suggest will work. I've created another module to create svg sprite without webpack : https://github.com/Epimodev/sprite-svg-symbol For the moment this module doesn't set aria attribute but if this solution solves your problem I can update it. |
Hello,
|
I haven't try those plugins but according to their documentation I've got same conclusion. If you want to insert a sprite in a html file without html-webpack-plugin the only solution I've got in mind is to inject the sprite after webpack build. |
Yes, same conclusion but svg-sprite-html-webpack do not allow to export sprite as a string variable or as a file. |
does an option |
Yes I think it can help, I'm not sure it it's enought to work with an othe webpack plugin like kss-webpack plugin because it will create an asynchrone issue. |
Ok, for the moment this plugin doesn't emits any value for webpack hook. I'll work on this today or tomorrow. |
Hello ! Sorry I've got more work than I expected during last days so I haven't implement callback and webpack hook yet. But tomorrow I will have the morning to work on this. |
I find a way using your |
ok happy to read you find a solution. Sorry, I forgot to add I keep this issue open until I make those changes. |
I love you plugin but I have an issue.
I need to insert the svg sprite inline in some html without htmlWebpackPlugin.
By exemple using it in KSS documentation or insert sprite in Html from a php website (webpack is only used to make a bundle of a front module inserted in a bigger php website).
How to do, can we export svgsprite string or insert it by js only ?
The text was updated successfully, but these errors were encountered: