@epilot360/webpack-config-epilot360 2.5.8 → 2.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -7,7 +7,7 @@ const HtmlWebpackPlugin = require("html-webpack-plugin");
|
|
|
7
7
|
const ForkTsCheckerWebpackPlugin = require("fork-ts-checker-webpack-plugin");
|
|
8
8
|
const StandaloneSingleSpaPlugin = require("standalone-single-spa-webpack-plugin");
|
|
9
9
|
const SystemJSPublicPathPlugin = require("systemjs-webpack-interop/SystemJSPublicPathWebpackPlugin");
|
|
10
|
-
const
|
|
10
|
+
const TerserPlugin = require("terser-webpack-plugin");
|
|
11
11
|
const resolveCwd = require('resolve-cwd');
|
|
12
12
|
const env = require('./env')()
|
|
13
13
|
|
|
@@ -138,10 +138,9 @@ function webpackConfigEpilot360ReactApp(opts) {
|
|
|
138
138
|
],
|
|
139
139
|
},
|
|
140
140
|
optimization: {
|
|
141
|
+
minimize: isProduction,
|
|
141
142
|
minimizer: [
|
|
142
|
-
new
|
|
143
|
-
target: 'es2015'
|
|
144
|
-
})
|
|
143
|
+
new TerserPlugin()
|
|
145
144
|
]
|
|
146
145
|
},
|
|
147
146
|
devtool: "source-map",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot360/webpack-config-epilot360",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.1",
|
|
4
4
|
"description": "A webpack config for in-browser modules used with single-spa for Epilot360",
|
|
5
5
|
"main": "lib/webpack-config-epilot360-portal.js",
|
|
6
6
|
"directories": {
|
|
@@ -17,11 +17,12 @@
|
|
|
17
17
|
"fork-ts-checker-webpack-plugin": "^6.0.5",
|
|
18
18
|
"html-webpack-plugin": "^5.1.0",
|
|
19
19
|
"https-browserify": "^1.0.0",
|
|
20
|
-
"postcss": "^8.4.
|
|
20
|
+
"postcss": "^8.4.16",
|
|
21
21
|
"postcss-loader": "^6.2.1",
|
|
22
22
|
"standalone-single-spa-webpack-plugin": "^1.1.0",
|
|
23
23
|
"style-loader": "^2.0.0",
|
|
24
24
|
"systemjs-webpack-interop": "^2.3.2",
|
|
25
|
+
"terser-webpack-plugin": "^5.3.6",
|
|
25
26
|
"unused-files-webpack-plugin": "^3.4.0",
|
|
26
27
|
"webpack": "^5.50.0",
|
|
27
28
|
"webpack-bundle-analyzer": "^4.2.0",
|