-
Notifications
You must be signed in to change notification settings - Fork 93
Latest version (3.1.2) breaks the injected manifest URL in windows 10 #15
Comments
May I see your Webpack config? I think it's related to your publicPath. |
webpack.production.config.ts
|
Was the file 'manifest.d1684d7a301d4e6cc8cc450a1300a3ee.json' properly exported by the plugin? |
Yes the manifest.d1684d7a301d4e6cc8cc450a1300a3ee.json exported properly, the issue is with injected URL. injected URL : |
Can you, please, run a test using my last commit? I added a regex that should do the trick. |
Yes I have run the test, unfortunately its produced the following URL
I think the following regex will fix the issue, but you may need to verify with other environments
|
Oops, my bad! Thanks! |
I think you missed to release the new build, see https://github.com/arthurbergmz/webpack-pwa-manifest/blob/master/dist/WebpackPwaManifest.js#L53 its not updated |
Oh gosh, I can't believe I've done that. Sorry! 😆 |
Sorry, I just fount that the same issue is happening for generated URLs inside manifest.json. Please see the following output using different version of the plugin. v3.1.1 - working
v3.1.4 - not working
|
Ok, now that worries me. |
Fwiw, even up to 3.1.1 the behaviour on windows is broken as the urls being generated are using windows style paths (backslash) instead of web paths (forward slash), this affects the src in the manifest and the filename of the manifest, there seems to be some compensation built into web browsers to correct these, but it probably wasn't intended. I can understand that since |
Okay, I've came up with a regex that should normalize most URI cases. |
@arthurbergmz just tried against master and this seems perfect on windows now :-), many thanks |
@arthurbergmz I have tried the master version and its working fine, thank you so much for the quick fix. 👍 |
No problem, guys! Thanks for reporting these issues. Please, update to v3.1.5. |
PWA Configuration
Please see the difference,
html-webpack-plugin: 2.29.0
webpack: 3.3.0
webpack-pwa-manifest: 3.1.1
<link rel="manifest" href="\manifest.ef1097bcbf4ac5ce67f564d4256f7a35.json" />
its working finehtml-webpack-plugin: 2.29.0
webpack: 3.3.0
webpack-pwa-manifest: 3.1.2
<link rel="manifest" href="//manifest.d1684d7a301d4e6cc8cc450a1300a3ee.json" />
not workingThe text was updated successfully, but these errors were encountered: