Skip to content
This repository was archived by the owner on May 26, 2023. It is now read-only.

Conversation

conradz
Copy link
Contributor

@conradz conradz commented Oct 14, 2015

When using this plugin on Windows, it currently always includes a %5C at the start of every URL in the manifest when publicPath is /. This obviously makes the appcache fail to load the specified assets.

This change fixes this issue by concatenating the publicPath and the asset URL instead of using path.join. Webpack (in its documentation) seems to expect a trailing slash on the publicPath. path.join is for file paths, not URLs since it uses the OS's path separator.

Using path.join adds backslashes when on Windows
@conradz
Copy link
Contributor Author

conradz commented Nov 18, 2015

Could someone take a look at this? It fixes important problems with this package when used on Windows. I can't upgrade to the latest version of this package because it is currently broken on Windows.

lettertwo added a commit that referenced this pull request Nov 20, 2015
Use concatenation instead of path.join for URLs
@lettertwo lettertwo merged commit c0db984 into lettertwo:master Nov 20, 2015
@lettertwo
Copy link
Owner

@conradz Thank you for your incredible patience, I've finally gotten around to pulling this and publishing a new version (on npm).

@conradz
Copy link
Contributor Author

conradz commented Nov 20, 2015

Thanks! ✨

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants