Parcourir la source

Манипуляции с appcache

Book Pauk il y a 5 ans
Parent
commit
db8a688620
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      build/webpack.prod.config.js

+ 1 - 1
build/webpack.prod.config.js

@@ -55,6 +55,6 @@ module.exports = merge(baseWpConfig, {
             filename: `${publicDir}/index.html`
             filename: `${publicDir}/index.html`
         }),
         }),
         new CopyWebpackPlugin([{from: `${clientDir}/assets/*`, to: `${publicDir}/`, flatten: true}]),
         new CopyWebpackPlugin([{from: `${clientDir}/assets/*`, to: `${publicDir}/`, flatten: true}]),
-        //new AppCachePlugin({})
+        new AppCachePlugin({exclude: ['../index.html']})
     ]
     ]
 });
 });