balm-core 4.2.0 → 4.3.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 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/master/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).
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
 
@@ -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
- chunkModules: false,
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
- publicPath: BalmJS.file.publicUrlOrPath
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) {
@@ -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.2.0",
3
+ "version": "4.3.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.5.1",
51
- "css-minimizer-webpack-plugin": "^3.3.1",
52
- "cssnano": "^5.0.15",
50
+ "css-loader": "^6.6.0",
51
+ "css-minimizer-webpack-plugin": "^3.4.1",
52
+ "cssnano": "^5.0.17",
53
53
  "del": "^6.0.0",
54
54
  "esbuild": "^0.14",
55
55
  "fancy-log": "^2.0.0",
@@ -66,39 +66,39 @@
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.1",
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": "^2.5.2",
73
+ "mini-css-extract-plugin": "2.5.2",
74
74
  "modernizr": "^3.11.8",
75
75
  "parents": "^1.0.1",
76
76
  "plugin-error": "^1.0.1",
77
- "postcss": "^8.4.5",
77
+ "postcss": "^8.4.6",
78
78
  "postcss-import": "^14.0.2",
79
- "postcss-load-config": "^3.1.1",
79
+ "postcss-load-config": "^3.1.2",
80
80
  "postcss-loader": "6.2.1",
81
- "postcss-preset-env": "^7.2.3",
81
+ "postcss-preset-env": "^7.3.1",
82
82
  "pretty-bytes": "^5.6.0",
83
83
  "readable-stream": "^3.6.0",
84
84
  "replace-ext": "^2.0.0",
85
- "rollup": "^2.64.0",
85
+ "rollup": "^2.67.2",
86
86
  "rollup-plugin-terser": "^7.0.2",
87
- "sass": "^1.48.0",
87
+ "sass": "^1.49.7",
88
88
  "sass-loader": "^12.4.0",
89
- "ssh2": "^1.5.0",
89
+ "ssh2": "^1.6.0",
90
90
  "strip-ansi": "^7.0.1",
91
91
  "style-loader": "^3.3.1",
92
92
  "terser": "^5.10.0",
93
- "terser-webpack-plugin": "^5.3.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.66.0",
99
+ "webpack": "^5.68.0",
100
100
  "webpack-bundle-analyzer": "^4.5.0",
101
- "webpack-dev-middleware": "^5.3.0",
101
+ "webpack-dev-middleware": "^5.3.1",
102
102
  "webpack-hot-middleware": "^2.25.1",
103
103
  "webpack-merge": "^5.8.0",
104
104
  "workbox-build": "^6.4.2"
@@ -106,7 +106,7 @@
106
106
  "devDependencies": {
107
107
  "@swc/core": "^1.2",
108
108
  "@types/express": "^4.17.13",
109
- "@types/node": "^17",
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": "23c92f2ef3b5240d24ec2b59f56d6ae49e33757b"
122
+ "gitHead": "2753aa6bf313956192bf9f6cde7d65ed3173f044"
123
123
  }
@@ -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
- chunkModules: false,
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
- publicPath: BalmJS.file.publicUrlOrPath
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 = {}) {