You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been trying to use 'entry' options to automatically load SVG sprite on windows machine.
My publicPath is './dist'.
Webpack plugin settings are new SvgStore("svg/icons/*/.svg", "/", {
name: '[hash].sprite.svg',
chunk: 'head'
})
The code path.join(publicPath, filePath) from 109 line in index.js produces this code in the resulting chunk head.js: svgXHR('\dist\8239235be0f2ba409fac873fb004346b.sprite.svg');
This causes the xhr request 404 error as the path is being read in javascript as 'dist8239235be0f2ba409fac873fb004346b.sprite.svg'.
The text was updated successfully, but these errors were encountered:
I've been trying to use 'entry' options to automatically load SVG sprite on windows machine.
My publicPath is './dist'.
Webpack plugin settings are
new SvgStore("svg/icons/*/.svg", "/", {
name: '[hash].sprite.svg',
chunk: 'head'
})
The code path.join(publicPath, filePath) from 109 line in index.js produces this code in the resulting chunk head.js:
svgXHR('\dist\8239235be0f2ba409fac873fb004346b.sprite.svg');
This causes the xhr request 404 error as the path is being read in javascript as 'dist8239235be0f2ba409fac873fb004346b.sprite.svg'.
The text was updated successfully, but these errors were encountered: