Hodor
Hodor
``` javascript new SWPrecacheWebpackPlugin({ cacheId: 'fancy', filename: 'service-worker.js', // staticFileGlobs: ['dist/**/*.{js,html,css}'], staticFileGlobs: ['dist/index.html'], staticFileGlobsIgnorePatterns:[/\.map$/], // minify: true, todo: close in deploy mergeStaticsConfig:true, stripPrefix: 'dist/' }) ``` it will output `index.html`...
``` javascript var precacheConfig = [ ["//cdn.com/dist/css/app.8e50af800688ab69cf8da5b9a0ba053c.css","8e50af800688ab69cf8da5b9a0ba053c"], ["//cdn.com/dist/favicon.ico","c03bce8a8efaa811e1d6e32c88930d67"], ["//cdn.com/dist/index.html","4dabed415bcd6573e160078d66f551f7"], ["//cdn.com/dist/js/app.dbb6850538e27a599b90.js","013824ccba8972cf4798311695251ec3"], ["//cdn.com/dist/js/manifest.77931f469b723c419d9c.js","a51944eb0bc6250959940a6292bd6468"], ["//cdn.com/dist/js/vendor.5953645b5f4b4a670ad7.js","288999c45126fbfa47aceb17bafe6101"], ["//cdn.com/dist/manifest.json","f6c47fe2e29257b16d81835eb1c6fcff"], ["//cdn.com/dist/touch-icon-115.png","7d1135731b1e1202bba0e639f5f87faf"], ["index.html","4dabed415bcd6573e160078d66f551f7"]]; ``` @lili21 works fine in my case, the `index.html` is alone and other assets is...
@Psiablo i won't use the path `//cdn.com/dist/index.html`,`index.html` is use in another domain's root such as 'https://a.com'