@vixoniccom/module-packager 2.5.2-test.1 → 2.5.2-test.3
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 +14 -0
- package/package.json +2 -2
- package/webpack.config.js +8 -11
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
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.3](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.5.2-test.2...v2.5.2-test.3) (2022-03-31)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **release:** UglifyJsPlugin was added - v2 ([0e32e2f](https://gitlab.com/mandomedio/vixonic/module-packager/commit/0e32e2f4f3fa5e47320b53ec8e6fef3f50c9bdd5))
|
|
11
|
+
|
|
12
|
+
### [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)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* **release:** UglifyJsPlugin was added ([da15fbe](https://gitlab.com/mandomedio/vixonic/module-packager/commit/da15fbe78714e302bbd1c8071f268b97ae9d9bf9))
|
|
18
|
+
|
|
5
19
|
### [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
20
|
|
|
7
21
|
### [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.
|
|
107
|
+
"version": "2.5.2-test.3",
|
|
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
|
|
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,13 @@ module.exports = (options) => {
|
|
|
153
143
|
'process.env': {
|
|
154
144
|
NODE_ENV: JSON.stringify('production')
|
|
155
145
|
}
|
|
146
|
+
}),
|
|
147
|
+
new UglifyJsPlugin({
|
|
148
|
+
uglifyOptions: {
|
|
149
|
+
warnings: false,
|
|
150
|
+
mangle: true,
|
|
151
|
+
extractComments: false
|
|
152
|
+
}
|
|
156
153
|
})
|
|
157
154
|
)
|
|
158
155
|
|