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