balm-core 4.2.0 → 4.4.0
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/README.md +1 -1
- package/lib/bundler/webpack/rules/url.js +1 -1
- package/lib/config/scripts.js +3 -3
- package/lib/middlewares/webpack.js +6 -1
- package/lib/tasks/public/sass.js +2 -1
- package/package.json +22 -22
- package/tslib/bundler/webpack/rules/url.js +1 -1
- package/tslib/config/scripts.js +3 -3
- package/tslib/middlewares/webpack.js +8 -1
- package/tslib/tasks/public/sass.js +2 -1
package/README.md
CHANGED
|
@@ -162,7 +162,7 @@ To download [example](https://balm.js.org/balm-example.zip) and try it, visit [b
|
|
|
162
162
|
|
|
163
163
|
## Contributing
|
|
164
164
|
|
|
165
|
-
We'd love for you to contribute and make BalmJS even better than it is today! Please make sure to read the [Contributing Guide](https://github.com/balmjs/balm/blob/
|
|
165
|
+
We'd love for you to contribute and make BalmJS even better than it is today! Please make sure to read the [Contributing Guide](https://github.com/balmjs/balm/blob/main/CONTRIBUTING.md) before making a [pull request](https://github.com/balmjs/balm/pulls). You can submit any ideas as pull requests or as [GitHub issues](https://github.com/balmjs/balm/issues).
|
|
166
166
|
|
|
167
167
|
## License
|
|
168
168
|
|
|
@@ -4,7 +4,7 @@ const imageInlineSizeLimit = parseInt(process.env.IMAGE_INLINE_SIZE_LIMIT || '10
|
|
|
4
4
|
|
|
5
5
|
function urlLoader() {
|
|
6
6
|
const PATHNAME = `${BalmJS.config.paths.target.js}/${STATIC_ASSETS}/`;
|
|
7
|
-
const FILENAME = `[name].${HASH_NAME_DEV}[ext]`;
|
|
7
|
+
const FILENAME = `[name].${HASH_NAME_DEV}.[ext]`;
|
|
8
8
|
const options = Object.assign({
|
|
9
9
|
limit: imageInlineSizeLimit,
|
|
10
10
|
// Loads files as `base64` encoded URL
|
package/lib/config/scripts.js
CHANGED
|
@@ -99,10 +99,10 @@ const externals = ''; // Stats
|
|
|
99
99
|
|
|
100
100
|
const stats = {
|
|
101
101
|
colors: true,
|
|
102
|
+
assets: true,
|
|
103
|
+
children: false,
|
|
102
104
|
chunks: false,
|
|
103
|
-
|
|
104
|
-
modules: false,
|
|
105
|
-
children: false
|
|
105
|
+
modules: false
|
|
106
106
|
};
|
|
107
107
|
/**
|
|
108
108
|
* Full custom webpack configuration
|
|
@@ -7,7 +7,12 @@ function webpackMiddleware() {
|
|
|
7
7
|
|
|
8
8
|
if (BalmJS.webpackCompiler) {
|
|
9
9
|
middleware.push(webpackDevMiddleware(BalmJS.webpackCompiler, Object.assign({}, BalmJS.config.server.devOptions, {
|
|
10
|
-
|
|
10
|
+
headers: [{
|
|
11
|
+
key: 'balm-core',
|
|
12
|
+
value: BalmJS.version
|
|
13
|
+
}],
|
|
14
|
+
publicPath: BalmJS.file.publicUrlOrPath,
|
|
15
|
+
stats: false
|
|
11
16
|
})));
|
|
12
17
|
|
|
13
18
|
if (BalmJS.config.server.useHMR) {
|
package/lib/tasks/public/sass.js
CHANGED
|
@@ -6,7 +6,8 @@ class SassTask extends BalmJS.BalmStyleTask {
|
|
|
6
6
|
get options() {
|
|
7
7
|
return Object.assign({
|
|
8
8
|
includePaths: BalmJS.file.stylePaths,
|
|
9
|
-
outputStyle: 'expanded'
|
|
9
|
+
outputStyle: 'expanded',
|
|
10
|
+
quietDeps: BalmJS.config.logs.level < BalmJS.LogLevel.Warn
|
|
10
11
|
}, BalmJS.config.styles.sassOptions, this.customOptions);
|
|
11
12
|
}
|
|
12
13
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "balm-core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.0",
|
|
4
4
|
"description": "BalmJS compiler core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"balm",
|
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
"babel-loader": "^8.2.3",
|
|
48
48
|
"browser-sync": "^2.27.7",
|
|
49
49
|
"connect-history-api-fallback": "^1.6.0",
|
|
50
|
-
"css-loader": "^6.
|
|
51
|
-
"css-minimizer-webpack-plugin": "^3.
|
|
52
|
-
"cssnano": "^5.
|
|
50
|
+
"css-loader": "^6.7.1",
|
|
51
|
+
"css-minimizer-webpack-plugin": "^3.4.1",
|
|
52
|
+
"cssnano": "^5.1.2",
|
|
53
53
|
"del": "^6.0.0",
|
|
54
54
|
"esbuild": "^0.14",
|
|
55
55
|
"fancy-log": "^2.0.0",
|
|
@@ -66,47 +66,47 @@
|
|
|
66
66
|
"html-loader": "^3.1.0",
|
|
67
67
|
"html-minifier": "^4.0.0",
|
|
68
68
|
"html-webpack-plugin": "^5.5.0",
|
|
69
|
-
"http-proxy-middleware": "^2.0.
|
|
69
|
+
"http-proxy-middleware": "^2.0.3",
|
|
70
70
|
"imagemin": "^8.0.1",
|
|
71
71
|
"istextorbinary": "^6.0.0",
|
|
72
72
|
"less": "^4.1.2",
|
|
73
|
-
"mini-css-extract-plugin": "
|
|
74
|
-
"modernizr": "^3.
|
|
73
|
+
"mini-css-extract-plugin": "2.5.2",
|
|
74
|
+
"modernizr": "^3.12.0",
|
|
75
75
|
"parents": "^1.0.1",
|
|
76
76
|
"plugin-error": "^1.0.1",
|
|
77
|
-
"postcss": "^8.4.
|
|
77
|
+
"postcss": "^8.4.8",
|
|
78
78
|
"postcss-import": "^14.0.2",
|
|
79
|
-
"postcss-load-config": "^3.1.
|
|
79
|
+
"postcss-load-config": "^3.1.3",
|
|
80
80
|
"postcss-loader": "6.2.1",
|
|
81
|
-
"postcss-preset-env": "^7.2
|
|
82
|
-
"pretty-bytes": "^
|
|
81
|
+
"postcss-preset-env": "^7.4.2",
|
|
82
|
+
"pretty-bytes": "^6.0.0",
|
|
83
83
|
"readable-stream": "^3.6.0",
|
|
84
84
|
"replace-ext": "^2.0.0",
|
|
85
|
-
"rollup": "^2.
|
|
85
|
+
"rollup": "^2.70.0",
|
|
86
86
|
"rollup-plugin-terser": "^7.0.2",
|
|
87
|
-
"sass": "^1.
|
|
88
|
-
"sass-loader": "^12.
|
|
89
|
-
"ssh2": "^1.
|
|
87
|
+
"sass": "^1.49.9",
|
|
88
|
+
"sass-loader": "^12.6.0",
|
|
89
|
+
"ssh2": "^1.7.0",
|
|
90
90
|
"strip-ansi": "^7.0.1",
|
|
91
91
|
"style-loader": "^3.3.1",
|
|
92
|
-
"terser": "^5.
|
|
93
|
-
"terser-webpack-plugin": "^5.3.
|
|
92
|
+
"terser": "^5.12.0",
|
|
93
|
+
"terser-webpack-plugin": "^5.3.1",
|
|
94
94
|
"through2": "^4.0.2",
|
|
95
95
|
"through2-concurrent": "^2.0.0",
|
|
96
96
|
"tslib": "^2.3.1",
|
|
97
97
|
"url-loader": "^4.1.1",
|
|
98
98
|
"vinyl-sourcemaps-apply": "^0.2.1",
|
|
99
|
-
"webpack": "^5.
|
|
99
|
+
"webpack": "^5.70.0",
|
|
100
100
|
"webpack-bundle-analyzer": "^4.5.0",
|
|
101
|
-
"webpack-dev-middleware": "^5.3.
|
|
101
|
+
"webpack-dev-middleware": "^5.3.1",
|
|
102
102
|
"webpack-hot-middleware": "^2.25.1",
|
|
103
103
|
"webpack-merge": "^5.8.0",
|
|
104
|
-
"workbox-build": "^6.
|
|
104
|
+
"workbox-build": "^6.5.1"
|
|
105
105
|
},
|
|
106
106
|
"devDependencies": {
|
|
107
107
|
"@swc/core": "^1.2",
|
|
108
108
|
"@types/express": "^4.17.13",
|
|
109
|
-
"@types/node": "
|
|
109
|
+
"@types/node": "17.0.13",
|
|
110
110
|
"@types/uglify-js": "^3.13.1",
|
|
111
111
|
"@types/webpack": "^5.28.0"
|
|
112
112
|
},
|
|
@@ -119,5 +119,5 @@
|
|
|
119
119
|
"engines": {
|
|
120
120
|
"node": ">=12.13.0"
|
|
121
121
|
},
|
|
122
|
-
"gitHead": "
|
|
122
|
+
"gitHead": "f808db6a618a1e3ff2de34a9fbfe93be8e285caa"
|
|
123
123
|
}
|
|
@@ -3,7 +3,7 @@ import { imgRegex, fontRegex, mediaRegex } from '../config/regex.js';
|
|
|
3
3
|
const imageInlineSizeLimit = parseInt(process.env.IMAGE_INLINE_SIZE_LIMIT || '10000');
|
|
4
4
|
function urlLoader() {
|
|
5
5
|
const PATHNAME = `${BalmJS.config.paths.target.js}/${STATIC_ASSETS}/`;
|
|
6
|
-
const FILENAME = `[name].${HASH_NAME_DEV}[ext]`;
|
|
6
|
+
const FILENAME = `[name].${HASH_NAME_DEV}.[ext]`;
|
|
7
7
|
const options = Object.assign({
|
|
8
8
|
limit: imageInlineSizeLimit,
|
|
9
9
|
name: BalmJS.file.assetsPath(`${PATHNAME}${FILENAME}`),
|
package/tslib/config/scripts.js
CHANGED
|
@@ -40,10 +40,10 @@ const target = ['web', 'es5'];
|
|
|
40
40
|
const externals = '';
|
|
41
41
|
const stats = {
|
|
42
42
|
colors: true,
|
|
43
|
+
assets: true,
|
|
44
|
+
children: false,
|
|
43
45
|
chunks: false,
|
|
44
|
-
|
|
45
|
-
modules: false,
|
|
46
|
-
children: false
|
|
46
|
+
modules: false
|
|
47
47
|
};
|
|
48
48
|
const webpackOptions = {};
|
|
49
49
|
const optimization = {};
|
|
@@ -5,7 +5,14 @@ function webpackMiddleware() {
|
|
|
5
5
|
const middleware = [];
|
|
6
6
|
if (BalmJS.webpackCompiler) {
|
|
7
7
|
middleware.push(webpackDevMiddleware(BalmJS.webpackCompiler, Object.assign({}, BalmJS.config.server.devOptions, {
|
|
8
|
-
|
|
8
|
+
headers: [
|
|
9
|
+
{
|
|
10
|
+
key: 'balm-core',
|
|
11
|
+
value: BalmJS.version
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
publicPath: BalmJS.file.publicUrlOrPath,
|
|
15
|
+
stats: false
|
|
9
16
|
})));
|
|
10
17
|
if (BalmJS.config.server.useHMR) {
|
|
11
18
|
middleware.push(webpackHotMiddleware(BalmJS.webpackCompiler, {
|
|
@@ -5,7 +5,8 @@ class SassTask extends BalmJS.BalmStyleTask {
|
|
|
5
5
|
get options() {
|
|
6
6
|
return Object.assign({
|
|
7
7
|
includePaths: BalmJS.file.stylePaths,
|
|
8
|
-
outputStyle: 'expanded'
|
|
8
|
+
outputStyle: 'expanded',
|
|
9
|
+
quietDeps: BalmJS.config.logs.level < BalmJS.LogLevel.Warn
|
|
9
10
|
}, BalmJS.config.styles.sassOptions, this.customOptions);
|
|
10
11
|
}
|
|
11
12
|
recipe(input, output, options = {}) {
|