Some code cleanup
This commit is contained in:
parent
40aa3da5de
commit
626a63ddd9
4 changed files with 2 additions and 81 deletions
|
@ -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',
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue