@vixoniccom/module-packager 2.5.2-test.0 → 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,15 @@
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
+
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)
13
+
5
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)
6
15
 
7
16
  ### [2.5.1](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.5.1-dev.0...v2.5.1) (2021-11-12)
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.0",
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,6 +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 UglifyJsPlugin = require('uglifyjs-webpack-plugin')
9
10
  const fs = require('fs')
10
11
 
11
12
  module.exports = (options) => {
@@ -98,16 +99,6 @@ module.exports = (options) => {
98
99
  }
99
100
  callback()
100
101
  },
101
- optimization: {
102
- minimize: true,
103
- minimizer: [new TerserPlugin({
104
- parallel: true,
105
- terserOptions: {
106
- ecma: 6,
107
- warnings: false
108
- },
109
- })],
110
- },
111
102
  plugins: [
112
103
  new CopyWebpackPlugin([{ from: path.resolve(options.src, 'static'), to: 'static/' }], { copyUnmodified: true }),
113
104
  new HtmlWebpackPlugin({
@@ -152,6 +143,14 @@ module.exports = (options) => {
152
143
  'process.env': {
153
144
  NODE_ENV: JSON.stringify('production')
154
145
  }
146
+ }),
147
+ new UglifyJsPlugin({
148
+ compress: {
149
+ warnings: false
150
+ },
151
+ mangle: true,
152
+ minimize: true,
153
+ comments: false
155
154
  })
156
155
  )
157
156