@vixoniccom/module-packager 2.5.1 → 2.5.2-test.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.
- package/CHANGELOG.md +4 -0
- package/package.json +3 -1
- package/webpack.config.js +11 -8
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
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.1](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.5.2-test.0...v2.5.2-test.1) (2022-03-31)
|
|
6
|
+
|
|
7
|
+
### [2.5.2-test.0](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.5.1...v2.5.2-test.0) (2022-03-31)
|
|
8
|
+
|
|
5
9
|
### [2.5.1](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.5.1-dev.0...v2.5.1) (2021-11-12)
|
|
6
10
|
|
|
7
11
|
### [2.5.1-dev.0](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.5.0...v2.5.1-dev.0) (2021-10-20)
|
package/package.json
CHANGED
|
@@ -76,6 +76,7 @@
|
|
|
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",
|
|
79
80
|
"ts-node": "^10.2.1",
|
|
80
81
|
"typescript": "^4.3.5",
|
|
81
82
|
"webpack": "^3.12.0",
|
|
@@ -100,9 +101,10 @@
|
|
|
100
101
|
"start": "electron",
|
|
101
102
|
"prerelease-dev": "standard-version --prerelease dev",
|
|
102
103
|
"prerelease-rc": "standard-version --prerelease rc",
|
|
104
|
+
"prerelease-test": "standard-version --prerelease test",
|
|
103
105
|
"release": "standard-version"
|
|
104
106
|
},
|
|
105
|
-
"version": "2.5.1",
|
|
107
|
+
"version": "2.5.2-test.1",
|
|
106
108
|
"devDependencies": {
|
|
107
109
|
"standard-version": "^9.3.1"
|
|
108
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 TerserPlugin = require('terser-webpack-plugin');
|
|
9
10
|
const fs = require('fs')
|
|
10
11
|
|
|
11
12
|
module.exports = (options) => {
|
|
@@ -98,6 +99,16 @@ module.exports = (options) => {
|
|
|
98
99
|
}
|
|
99
100
|
callback()
|
|
100
101
|
},
|
|
102
|
+
optimization: {
|
|
103
|
+
minimize: true,
|
|
104
|
+
minimizer: [new TerserPlugin({
|
|
105
|
+
parallel: true,
|
|
106
|
+
terserOptions: {
|
|
107
|
+
ecma: 6,
|
|
108
|
+
warnings: false
|
|
109
|
+
},
|
|
110
|
+
})],
|
|
111
|
+
},
|
|
101
112
|
plugins: [
|
|
102
113
|
new CopyWebpackPlugin([{ from: path.resolve(options.src, 'static'), to: 'static/' }], { copyUnmodified: true }),
|
|
103
114
|
new HtmlWebpackPlugin({
|
|
@@ -142,14 +153,6 @@ module.exports = (options) => {
|
|
|
142
153
|
'process.env': {
|
|
143
154
|
NODE_ENV: JSON.stringify('production')
|
|
144
155
|
}
|
|
145
|
-
}),
|
|
146
|
-
new webpack.optimize.UglifyJsPlugin({
|
|
147
|
-
compress: {
|
|
148
|
-
warnings: false
|
|
149
|
-
},
|
|
150
|
-
mangle: true,
|
|
151
|
-
minimize: true,
|
|
152
|
-
comments: false
|
|
153
156
|
})
|
|
154
157
|
)
|
|
155
158
|
|