Some code cleanup

This commit is contained in:
Dane Everitt 2019-02-09 19:15:18 -08:00
parent 40aa3da5de
commit 626a63ddd9
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
4 changed files with 2 additions and 81 deletions

View file

@ -9,7 +9,6 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const ShellPlugin = require('webpack-shell-plugin');
const PurgeCssPlugin = require('purgecss-webpack-plugin');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
const VueLoaderPlugin = require('vue-loader/lib/plugin');
const isProduction = process.env.NODE_ENV === 'production';
@ -28,7 +27,6 @@ let plugins = [
integrity: true,
integrityHashes: ['sha384'],
}),
new VueLoaderPlugin(),
];
if (isProduction) {
@ -122,10 +120,6 @@ module.exports = {
},
module: {
rules: [
{
test: /\.vue$/,
loader: 'vue-loader',
},
{
test: /\.js$/,
loader: 'babel-loader',
@ -184,18 +178,13 @@ module.exports = {
],
splitChunks: {
cacheGroups: {
vue: {
test: /[\\/]node_modules[\\/](vue\w?)[\\/]/,
name: 'vue',
chunks: 'initial',
},
locales: {
test: /locales/,
name: 'locales',
chunks: 'initial',
},
vendors: {
test: /[\\/]node_modules[\\/](?!vue)(.*)[\\/]/,
test: /[\\/]node_modules[\\/]/,
name: 'vendor',
chunks: 'initial',
},