@vixoniccom/module-packager 2.7.0-test.12 → 2.7.0-test.13
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 +12 -8
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.7.0-test.13](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.7.0-test.12...v2.7.0-test.13) (2022-07-15)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **release:** all requires were updated by imports and also new webpack properties were added to the configuration ([d9a73d6](https://gitlab.com/mandomedio/vixonic/module-packager/commit/d9a73d6e7f2ae31cbbdb475a38bd07fa7159e7ca))
|
|
11
|
+
|
|
5
12
|
## [2.7.0-test.12](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.7.0-test.11...v2.7.0-test.12) (2022-07-15)
|
|
6
13
|
|
|
7
14
|
|
package/package.json
CHANGED
package/webpack.config.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const fs = require('fs')
|
|
3
|
+
import CleanWebpackPlugin from 'clean-webpack-plugin'
|
|
4
|
+
import CopyWebpackPlugin from 'copy-webpack-plugin'
|
|
5
|
+
import HtmlWebpackPlugin from 'html-webpack-plugin'
|
|
6
|
+
import webpack from 'webpack'
|
|
7
|
+
import path from 'path'
|
|
8
|
+
import _ from 'lodash'
|
|
9
|
+
import UglifyJsPlugin from 'uglifyjs-webpack-plugin'
|
|
11
10
|
|
|
12
11
|
module.exports = (options) => {
|
|
13
12
|
if (options.target === 'web') {
|
|
@@ -23,12 +22,17 @@ module.exports = (options) => {
|
|
|
23
22
|
console.log('exclude ', exclude)
|
|
24
23
|
console.log('Options: ', options, options.src)
|
|
25
24
|
let config = {
|
|
25
|
+
mode: 'production',
|
|
26
26
|
context: __dirname,
|
|
27
27
|
entry: ['babel-polyfill', path.resolve(options.src, 'main')],
|
|
28
28
|
output: {
|
|
29
29
|
path: path.resolve(options.build),
|
|
30
30
|
filename: 'main.js'
|
|
31
31
|
},
|
|
32
|
+
performance: {
|
|
33
|
+
maxAssetSize: 1000000,
|
|
34
|
+
maxEntrypointSize: 1000000
|
|
35
|
+
},
|
|
32
36
|
node: {
|
|
33
37
|
__dirname: options.mode === 'watch',
|
|
34
38
|
fs: 'empty',
|