mrsum/webpack-svgstore-plugin

Sub-domain issue

Opened this issue · 0 comments

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 example "http://frontend.devs.cz/" everything works just fine, but when I move my project one level further to "http://frontend.devs.cz/myproject", for example, the plugin ignores the "myproject" pathname and creates the following path for the SVG file that is incorrect: http://frontend.devs.cz/static/images/icons/icons.svg omitting the "myproject" part. Here are my settings:
let __svg__ = { path: '../images/icons/**/*.svg', name: 'static/images/icons/icons.svg' }; require('webpack-svgstore-plugin/src/helpers/svgxhr')(__svg__);
Please help.