Skip to content
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

Windows path problem #17

Closed
fr-ench opened this issue Dec 9, 2015 · 3 comments
Closed

Windows path problem #17

fr-ench opened this issue Dec 9, 2015 · 3 comments

Comments

@fr-ench
Copy link
Contributor

fr-ench commented Dec 9, 2015

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'.

@kisenka
Copy link
Contributor

kisenka commented Dec 9, 2015

@fr-ench perhaps you're looking for webpack-svgstore-plugin repo?

@fr-ench
Copy link
Contributor Author

fr-ench commented Dec 9, 2015

@kisenka, oh yes, I'm sorry.
Thank you!

@fr-ench fr-ench closed this as completed Dec 9, 2015
@kisenka
Copy link
Contributor

kisenka commented Dec 9, 2015

@fr-ench you're welcome! 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants