@vixoniccom/module-packager 2.5.0-dev.6 → 2.5.0-dev.7
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 +7 -0
- package/package.json +1 -1
- package/webpack.config.js +8 -2
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.0-dev.7](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.5.0-dev.6...v2.5.0-dev.7) (2021-08-20)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **release:** UglifyJsPlugin config was updated ([799da0d](https://gitlab.com/mandomedio/vixonic/module-packager/commit/799da0da127b73e7442489b27f271c3548ef1476))
|
|
11
|
+
|
|
5
12
|
## [2.5.0-dev.6](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.5.0-dev.5...v2.5.0-dev.6) (2021-08-20)
|
|
6
13
|
|
|
7
14
|
## [2.5.0-dev.5](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.5.0-dev.4...v2.5.0-dev.5) (2021-08-20)
|
package/package.json
CHANGED
package/webpack.config.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
3
|
const CleanWebpackPlugin = require('clean-webpack-plugin')
|
|
4
|
+
const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
|
|
4
5
|
const CopyWebpackPlugin = require('copy-webpack-plugin')
|
|
5
6
|
const HtmlWebpackPlugin = require('html-webpack-plugin')
|
|
6
7
|
const webpack = require('webpack')
|
|
@@ -23,6 +24,7 @@ module.exports = (options) => {
|
|
|
23
24
|
|
|
24
25
|
let config = {
|
|
25
26
|
context: __dirname,
|
|
27
|
+
optimization: { minimizer: [] },
|
|
26
28
|
entry: ['babel-polyfill', path.resolve(options.src, 'main')],
|
|
27
29
|
output: {
|
|
28
30
|
path: path.resolve(options.build),
|
|
@@ -149,12 +151,16 @@ module.exports = (options) => {
|
|
|
149
151
|
'process.env': {
|
|
150
152
|
NODE_ENV: JSON.stringify('production')
|
|
151
153
|
}
|
|
152
|
-
})
|
|
153
|
-
|
|
154
|
+
})
|
|
155
|
+
)
|
|
156
|
+
|
|
157
|
+
config.optimization.minimizer.unshift(
|
|
158
|
+
new UglifyJsPlugin({
|
|
154
159
|
compress: {
|
|
155
160
|
warnings: false
|
|
156
161
|
},
|
|
157
162
|
mangle: true,
|
|
163
|
+
minimize: true,
|
|
158
164
|
comments: false
|
|
159
165
|
})
|
|
160
166
|
)
|