mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-18 22:33:44 +02:00
Some code cleanup
This commit is contained in:
@@ -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',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user