balm-core 4.5.0 → 4.5.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/lib/balm.js
CHANGED
|
@@ -56,7 +56,7 @@ class Balm {
|
|
|
56
56
|
if (BalmJS.utils.isFunction(recipe)) {
|
|
57
57
|
registerTasks(recipe);
|
|
58
58
|
} else {
|
|
59
|
-
BalmJS.logger.error('initialization', 'BalmJS API: `balm.go(
|
|
59
|
+
BalmJS.logger.error('initialization', 'BalmJS API: `balm.go(mix => {});`');
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import TerserPlugin from 'terser-webpack-plugin';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
// import MiniCssExtractPlugin from 'mini-css-extract-plugin';
|
|
4
3
|
import webpackBundleAnalyzer from 'webpack-bundle-analyzer';
|
|
5
4
|
import { merge } from 'webpack-merge';
|
|
6
5
|
import getCommonConfig from './common.js'; // import { CHUNK } from '../../../config/constants.js';
|
|
@@ -26,7 +25,8 @@ function getProdConfig(webpack, scripts) {
|
|
|
26
25
|
minimizer: [new TerserPlugin({
|
|
27
26
|
terserOptions,
|
|
28
27
|
extractComments: false
|
|
29
|
-
})
|
|
28
|
+
}) // new CssMinimizerPlugin()
|
|
29
|
+
]
|
|
30
30
|
},
|
|
31
31
|
plugins: [new webpack.DefinePlugin({
|
|
32
32
|
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV || 'production')
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "balm-core",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.3",
|
|
4
4
|
"description": "BalmJS compiler core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"balm",
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
"directory": "packages/balm-core"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
+
"ajv": "^8",
|
|
44
45
|
"ansi-colors": "^4.1.1",
|
|
45
46
|
"async": "^3.2.3",
|
|
46
47
|
"autoprefixer": "^10.4.4",
|
|
@@ -51,7 +52,7 @@
|
|
|
51
52
|
"css-minimizer-webpack-plugin": "^3.4.1",
|
|
52
53
|
"cssnano": "^5.1.7",
|
|
53
54
|
"del": "^6.0.0",
|
|
54
|
-
"esbuild": "^0.14",
|
|
55
|
+
"esbuild": "^0.14.0",
|
|
55
56
|
"fancy-log": "^2.0.0",
|
|
56
57
|
"gulp-eslint": "^6.0.0",
|
|
57
58
|
"gulp-if": "^3.0.0",
|
|
@@ -102,7 +103,7 @@
|
|
|
102
103
|
"workbox-build": "^6.5.2"
|
|
103
104
|
},
|
|
104
105
|
"devDependencies": {
|
|
105
|
-
"@swc/core": "^1.2",
|
|
106
|
+
"@swc/core": "^1.2.0",
|
|
106
107
|
"@types/express": "^4.17.13",
|
|
107
108
|
"@types/node": "^17.0.23",
|
|
108
109
|
"@types/uglify-js": "^3.13.1",
|
|
@@ -117,5 +118,5 @@
|
|
|
117
118
|
"engines": {
|
|
118
119
|
"node": ">=12.13.0"
|
|
119
120
|
},
|
|
120
|
-
"gitHead": "
|
|
121
|
+
"gitHead": "63714c3886a2c89d9577e4d1c4060d439a2fa7e7"
|
|
121
122
|
}
|
package/tslib/balm.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import TerserPlugin from 'terser-webpack-plugin';
|
|
2
|
-
import CssMinimizerPlugin from 'css-minimizer-webpack-plugin';
|
|
3
2
|
import webpackBundleAnalyzer from 'webpack-bundle-analyzer';
|
|
4
3
|
import { merge } from 'webpack-merge';
|
|
5
4
|
import getCommonConfig from './common.js';
|
|
@@ -17,8 +16,7 @@ function getProdConfig(webpack, scripts) {
|
|
|
17
16
|
new TerserPlugin({
|
|
18
17
|
terserOptions,
|
|
19
18
|
extractComments: false
|
|
20
|
-
})
|
|
21
|
-
new CssMinimizerPlugin()
|
|
19
|
+
})
|
|
22
20
|
]
|
|
23
21
|
},
|
|
24
22
|
plugins: [
|