From 513cda6ed2927d72aee5a08493946eb5f00c3af9 Mon Sep 17 00:00:00 2001 From: peter Date: Tue, 20 Aug 2019 21:44:33 +0200 Subject: [PATCH] fix frontblocklib --- src/backend/webpack.prod.js | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/src/backend/webpack.prod.js b/src/backend/webpack.prod.js index f624a81..528157a 100644 --- a/src/backend/webpack.prod.js +++ b/src/backend/webpack.prod.js @@ -1,5 +1,3 @@ -const TerserPlugin = require('terser-webpack-plugin'); - const path = require('path'); module.exports = { @@ -14,34 +12,5 @@ module.exports = { path: path.resolve(__dirname, '../../dist'), filename: 'FrontblockLib.js', libraryTarget: 'commonjs', - }, - optimization: { - minimizer: [new TerserPlugin({ - cache: true, - parallel: true, - terserOptions:{ - mangle: false, - keep_classnames: true - } - })], - splitChunks: { - cacheGroups: { - common: { - chunks: 'all', - minChunks: 2, - maxInitialRequests: 5, - minSize: 0, - name: 'common' - }, - vendor: { - test: /node_modules/, - chunks: 'all', - name: 'vendor', - priority: 10, - enforce: true, - minChunks: 2 - } - } - } } }