1
0
Gerald 7 жил өмнө
parent
commit
8f2b01b206

+ 0 - 12
scripts/webpack/sw.js

@@ -1,12 +0,0 @@
-const SWPrecacheWebpackPlugin = require('sw-precache-webpack-plugin');
-const { isProd } = require('../util');
-
-module.exports = options => config => {
-  config.plugins = [
-    ...config.plugins || [],
-    new SWPrecacheWebpackPlugin({
-      minify: isProd,
-      ...options,
-    }),
-  ].filter(Boolean);
-};

+ 3 - 1
scripts/webpack/vue.js

@@ -6,7 +6,9 @@ module.exports = () => config => {
     test: /\.vue$/,
     loader: 'vue-loader',
     options: {
-      preserveWhitespace: false,
+      compilerOptions: {
+        preserveWhitespace: false,
+      },
     },
   });
   config.plugins.push(new VueLoaderPlugin());