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
Please tell us about your environment:
Windows 10 with Ubuntu Bash
Current behavior: index.html is added to sw with /assets/-prefix
Expected/desired behavior: index.html is added to sw with no prefix
Webpack configuration:
newSWPrecacheWebpackPlugin({cacheId: '<id>',filename: 'serviceworker.js',minify: false,maximumFileSizeToCacheInBytes: 3500000,filepath: path.join(assetsDir,'/serviceworker.js'),mergeStaticsConfig: true,staticFileGlobsIgnorePatterns: [/serviceworker\.js$/i],// This obviously does not work :/stripPrefixMulti: {'/assets/index.html': 'index.html'},navigateFallback: '/index.html'})
I'm trying to cache the html files, but with the current setup, the html files is cached with the /assets/-prefix, resulting in no offline support(?) and no caching of the files. How can I achieve what I want to do?
The text was updated successfully, but these errors were encountered:
BEFORE YOU SUBMIT please read the following:
webpack version:
^3.5.5
sw-precache-webpack-plugin version:
^0.11.4
Please tell us about your environment:
Windows 10 with Ubuntu Bash
Current behavior:
index.html
is added to sw with/assets/
-prefixExpected/desired behavior:
index.html
is added to sw with no prefixIrrelevant files ommitted
https://gist.github.com/phun-ky/c66786d9a91604baf308dbb7ebd4ed6a
I'm trying to cache the html files, but with the current setup, the html files is cached with the
/assets/
-prefix, resulting in no offline support(?) and no caching of the files. How can I achieve what I want to do?The text was updated successfully, but these errors were encountered: