@vixoniccom/module-packager 2.5.2-test.1 → 2.5.2-test.2

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [2.5.2-test.2](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.5.2-test.1...v2.5.2-test.2) (2022-03-31)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **release:** UglifyJsPlugin was added ([da15fbe](https://gitlab.com/mandomedio/vixonic/module-packager/commit/da15fbe78714e302bbd1c8071f268b97ae9d9bf9))
11
+
5
12
  ### [2.5.2-test.1](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.5.2-test.0...v2.5.2-test.1) (2022-03-31)
6
13
 
7
14
  ### [2.5.2-test.0](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.5.1...v2.5.2-test.0) (2022-03-31)
package/package.json CHANGED
@@ -76,9 +76,9 @@
76
76
  "raw-loader": "^0.5.1",
77
77
  "sass-loader": "^4.0.2",
78
78
  "style-loader": "^0.13.1",
79
- "terser-webpack-plugin": "^5.3.1",
80
79
  "ts-node": "^10.2.1",
81
80
  "typescript": "^4.3.5",
81
+ "uglifyjs-webpack-plugin": "^2.2.0",
82
82
  "webpack": "^3.12.0",
83
83
  "webpack-dev-server": "^2.11.5"
84
84
  },
@@ -104,7 +104,7 @@
104
104
  "prerelease-test": "standard-version --prerelease test",
105
105
  "release": "standard-version"
106
106
  },
107
- "version": "2.5.2-test.1",
107
+ "version": "2.5.2-test.2",
108
108
  "devDependencies": {
109
109
  "standard-version": "^9.3.1"
110
110
  }
package/webpack.config.js CHANGED
@@ -6,7 +6,7 @@ const HtmlWebpackPlugin = require('html-webpack-plugin')
6
6
  const webpack = require('webpack')
7
7
  const path = require('path')
8
8
  const _ = require('lodash')
9
- const TerserPlugin = require('terser-webpack-plugin');
9
+ const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
10
10
  const fs = require('fs')
11
11
 
12
12
  module.exports = (options) => {
@@ -99,16 +99,6 @@ module.exports = (options) => {
99
99
  }
100
100
  callback()
101
101
  },
102
- optimization: {
103
- minimize: true,
104
- minimizer: [new TerserPlugin({
105
- parallel: true,
106
- terserOptions: {
107
- ecma: 6,
108
- warnings: false
109
- },
110
- })],
111
- },
112
102
  plugins: [
113
103
  new CopyWebpackPlugin([{ from: path.resolve(options.src, 'static'), to: 'static/' }], { copyUnmodified: true }),
114
104
  new HtmlWebpackPlugin({
@@ -153,6 +143,14 @@ module.exports = (options) => {
153
143
  'process.env': {
154
144
  NODE_ENV: JSON.stringify('production')
155
145
  }
146
+ }),
147
+ new UglifyJsPlugin({
148
+ compress: {
149
+ warnings: false
150
+ },
151
+ mangle: true,
152
+ minimize: true,
153
+ comments: false
156
154
  })
157
155
  )
158
156