Update webpack plugin order to fix an issue with caching index.html

This commit is contained in:
Pratik Borsadiya 2018-09-06 19:20:52 +05:30
parent 7d5b75e78c
commit 060ba7056c
3 changed files with 33 additions and 29 deletions

View File

@ -1,32 +1,32 @@
self.__precacheManifest = [ self.__precacheManifest = [
{ {
"revision": "be1df903f0d7711ef8a4e96b6ca56dc0", "revision": "4eb7af0db693855a4f24cb119a73110d",
"url": "flags/fr.svg" "url": "flags/de.svg"
}, },
{ {
"revision": "78de6acf30cc7fa4700207e205a52e88", "revision": "9be2d6fa33228eaaef3a00ce10238d31",
"url": "flags/br.svg" "url": "index.html"
}, },
{ {
"revision": "3b00bc3b62feafb50a2e", "revision": "3b00bc3b62feafb50a2e",
"url": "vendor.js" "url": "vendor.js"
}, },
{
"revision": "8020fcd82cc09410f7bad1bc875c115a",
"url": "flags/es.svg"
},
{ {
"revision": "617c6a550519013aed310e0fe85bb088", "revision": "617c6a550519013aed310e0fe85bb088",
"url": "flags/us.svg" "url": "flags/us.svg"
}, },
{ {
"revision": "a88d006ab7afa49d76ecd86dd1b11f77", "revision": "0f6e3867129940ef785c7c8720e0b56d",
"url": "flags/th.svg" "url": "flags/ru.svg"
}, },
{ {
"revision": "09ccf3b3b0a12dd5b3559acedc77858c", "revision": "09ccf3b3b0a12dd5b3559acedc77858c",
"url": "flags/nl.svg" "url": "flags/nl.svg"
}, },
{
"revision": "bedfd890b6c16afeb952546279242cf7",
"url": "flags/cn.svg"
},
{ {
"revision": "22084f478d0f401fa96288f7790ba8ef", "revision": "22084f478d0f401fa96288f7790ba8ef",
"url": "flags/tw.svg" "url": "flags/tw.svg"
@ -36,36 +36,40 @@ self.__precacheManifest = [
"url": "flags/pl.svg" "url": "flags/pl.svg"
}, },
{ {
"revision": "d107c3019844d2d1f0a4d179cbd8046e", "revision": "60fb243496d39972a15bf5a78b6e50ee",
"url": "flags/id.svg" "url": "flags/tr.svg"
}, },
{ {
"revision": "4eb7af0db693855a4f24cb119a73110d", "revision": "a88d006ab7afa49d76ecd86dd1b11f77",
"url": "flags/de.svg" "url": "flags/th.svg"
},
{
"revision": "8020fcd82cc09410f7bad1bc875c115a",
"url": "flags/es.svg"
},
{
"revision": "0f6e3867129940ef785c7c8720e0b56d",
"url": "flags/ru.svg"
}, },
{ {
"revision": "d5204a17fb30a59a4760b4109fbefe0b", "revision": "d5204a17fb30a59a4760b4109fbefe0b",
"url": "flags/it.svg" "url": "flags/it.svg"
}, },
{ {
"revision": "60fb243496d39972a15bf5a78b6e50ee", "revision": "5e7a66fb0660b714f1a47859b90767e0",
"url": "flags/tr.svg" "url": "flags/ir.svg"
},
{
"revision": "d107c3019844d2d1f0a4d179cbd8046e",
"url": "flags/id.svg"
},
{
"revision": "be1df903f0d7711ef8a4e96b6ca56dc0",
"url": "flags/fr.svg"
}, },
{ {
"revision": "5d1c62c220e3dcc85d70e206d44a9d4c", "revision": "5d1c62c220e3dcc85d70e206d44a9d4c",
"url": "flags/cz.svg" "url": "flags/cz.svg"
}, },
{ {
"revision": "5e7a66fb0660b714f1a47859b90767e0", "revision": "bedfd890b6c16afeb952546279242cf7",
"url": "flags/ir.svg" "url": "flags/cn.svg"
},
{
"revision": "78de6acf30cc7fa4700207e205a52e88",
"url": "flags/br.svg"
}, },
{ {
"revision": "23a22250de06d1793dc4", "revision": "23a22250de06d1793dc4",

View File

@ -14,7 +14,7 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/3.4.1/workbox-sw.js"); importScripts("https://storage.googleapis.com/workbox-cdn/releases/3.4.1/workbox-sw.js");
importScripts( importScripts(
"precache-manifest.9fb68aa2f4c1d3847817b423aa5ac56d.js" "precache-manifest.52b448caf742d9881a064bf25c755e89.js"
); );
/** /**

View File

@ -43,7 +43,6 @@ const config = {
}, },
plugins: [ plugins: [
new CleanWebpackPlugin(["build"]), new CleanWebpackPlugin(["build"]),
new WorkboxPlugin.GenerateSW(),
new webpack.ProvidePlugin({ new webpack.ProvidePlugin({
"window.jQuery": "jquery", "window.jQuery": "jquery",
jQuery: "jquery", jQuery: "jquery",
@ -55,7 +54,8 @@ const config = {
}), }),
new MiniCssExtractPlugin({ new MiniCssExtractPlugin({
filename: "[name].css" filename: "[name].css"
}) }),
new WorkboxPlugin.GenerateSW()
], ],
optimization: { optimization: {
splitChunks: { splitChunks: {