-
Notifications
You must be signed in to change notification settings - Fork 90
understand how to use plugin #153
Comments
Usually you put that code in your entrypoint. You should adjust paths to the actual icon (path) and specify path to the output sprite file relative to your webpack config output path (name). This code is responsible for requesting your sprite on runtime (it makes simple xhr call for file and injects file into html). |
Now, my sprite rebuild when i update my js file. How can I watch for svg images and when i add/remove svg images, my sprite rebuld? |
@kazagkazag Thanks for response :) |
Also you could edit require('webpack-svgstore-plugin/src/helpers/svgxhr')({
filename: '/assets/' + __svg__.filename
}); Just change |
Подскажите, что тут не так? Сделал всё как в документации описано, но не работает.
Вставляю в главный файл js |
@lllel |
I am not understand how it works this plugin
I add this to my webpack config
What is it? it is nessary or not? Where i write code below
The text was updated successfully, but these errors were encountered: