weboptimizer 3.0.15 → 3.0.17
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/eslint.config.mjs +1 -0
- package/package.json +12 -12
- package/webpackConfigurator.js +13 -3
package/eslint.config.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weboptimizer",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.17",
|
|
4
4
|
"description": "A generic web optimizer, (module) bundler and development environment.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"babel-loader": "^10.1.1",
|
|
99
99
|
"babel-plugin-transform-modern-regexp": "^0.0.6",
|
|
100
100
|
"babel-preset-minify": "^0.5.2",
|
|
101
|
-
"clientnode": "4.0.
|
|
101
|
+
"clientnode": "4.0.1382",
|
|
102
102
|
"ejs": "^5.0.1",
|
|
103
103
|
"exports-loader": "^5.0.0",
|
|
104
104
|
"extract-loader": "^5.1.0",
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
"rimraf": "^6.1.3",
|
|
112
112
|
"script-loader": "^0.7.2",
|
|
113
113
|
"typescript": "^6.0.2",
|
|
114
|
-
"webpack": "^5.
|
|
114
|
+
"webpack": "^5.106.0",
|
|
115
115
|
"webpack-cli": "^7.0.2",
|
|
116
116
|
"webpack-sources": "^3.3.4"
|
|
117
117
|
},
|
|
@@ -125,28 +125,28 @@
|
|
|
125
125
|
"@types/html-minifier": "^4.0.6",
|
|
126
126
|
"@types/html-minifier-terser": "^7.0.2",
|
|
127
127
|
"@types/imagemin": "^9.0.1",
|
|
128
|
-
"@types/node": "^25.5.
|
|
128
|
+
"@types/node": "^25.5.2",
|
|
129
129
|
"@types/postcss-import": "^14.0.3",
|
|
130
130
|
"@types/postcss-url": "^10.0.4",
|
|
131
131
|
"@types/webpack-env": "^1.18.8",
|
|
132
132
|
"@types/webpack-sources": "^3.2.3",
|
|
133
|
-
"@typescript-eslint/parser": "^8.
|
|
133
|
+
"@typescript-eslint/parser": "^8.58.1",
|
|
134
134
|
"css-loader": "^7.1.4",
|
|
135
|
-
"cssnano": "^7.1.
|
|
135
|
+
"cssnano": "^7.1.4",
|
|
136
136
|
"documentation-website": "^1.0.401",
|
|
137
|
-
"eslint": "^10.
|
|
137
|
+
"eslint": "^10.2.0",
|
|
138
138
|
"eslint-config-google": "^0.14.0",
|
|
139
|
-
"eslint-plugin-jsdoc": "^62.
|
|
139
|
+
"eslint-plugin-jsdoc": "^62.9.0",
|
|
140
140
|
"favicons": "^7.2.0",
|
|
141
141
|
"favicons-webpack-plugin": "^6.0.1",
|
|
142
142
|
"globals": "^17.4.0",
|
|
143
143
|
"image-minimizer-webpack-plugin": "^5.0.0",
|
|
144
144
|
"jest": "^30.3.0",
|
|
145
145
|
"jsdoc": "^4.0.5",
|
|
146
|
-
"mini-css-extract-plugin": "^2.10.
|
|
146
|
+
"mini-css-extract-plugin": "^2.10.2",
|
|
147
147
|
"mkdirp": "^3.0.1",
|
|
148
148
|
"node-fetch": "^3.3.2",
|
|
149
|
-
"postcss": "^8.5.
|
|
149
|
+
"postcss": "^8.5.9",
|
|
150
150
|
"postcss-fontpath": "^1.0.0",
|
|
151
151
|
"postcss-import": "^16.1.1",
|
|
152
152
|
"postcss-loader": "^8.2.1",
|
|
@@ -155,10 +155,10 @@
|
|
|
155
155
|
"postcss-url": "^10.1.3",
|
|
156
156
|
"shx": "^0.4.0",
|
|
157
157
|
"style-loader": "^4.0.0",
|
|
158
|
-
"stylelint": "^17.
|
|
158
|
+
"stylelint": "^17.6.0",
|
|
159
159
|
"stylelint-config-standard": "^40.0.0",
|
|
160
160
|
"stylelint-config-standard-scss": "^17.0.0",
|
|
161
|
-
"typescript-eslint": "^8.
|
|
161
|
+
"typescript-eslint": "^8.58.1",
|
|
162
162
|
"typescript-plugin-css-modules": "^5.2.0",
|
|
163
163
|
"workbox-webpack-plugin": "^7.4.0"
|
|
164
164
|
},
|
package/webpackConfigurator.js
CHANGED
|
@@ -614,6 +614,15 @@ var evaluateAdditionalLoaderConfiguration = function evaluateAdditionalLoaderCon
|
|
|
614
614
|
var getIncludingPaths = function getIncludingPaths(path) {
|
|
615
615
|
return (0, _helper.normalizePaths)([path].concat(_module.locations.directoryPaths));
|
|
616
616
|
};
|
|
617
|
+
var postCSSResolver = function postCSSResolver(name, _context) {
|
|
618
|
+
for (var _i7 = 0, _Object$entries6 = Object.entries(configuration.module.aliases); _i7 < _Object$entries6.length; _i7++) {
|
|
619
|
+
var _Object$entries6$_i = (0, _slicedToArray2["default"])(_Object$entries6[_i7], 2),
|
|
620
|
+
source = _Object$entries6$_i[0],
|
|
621
|
+
target = _Object$entries6$_i[1];
|
|
622
|
+
if (source.startsWith(name)) return target;
|
|
623
|
+
}
|
|
624
|
+
return name;
|
|
625
|
+
};
|
|
617
626
|
var cssUse = _module.preprocessor.cascadingStyleSheet.additional.pre.map(createEvaluateMapper('css')).concat({
|
|
618
627
|
loader: _module.style.loader,
|
|
619
628
|
options: _module.style.options || {}
|
|
@@ -630,7 +639,8 @@ var cssUse = _module.preprocessor.cascadingStyleSheet.additional.pre.map(createE
|
|
|
630
639
|
consumer decide which distribution suites most.
|
|
631
640
|
*/
|
|
632
641
|
plugins: [].concat(postcssImport ? postcssImport({
|
|
633
|
-
root: configuration.path.context
|
|
642
|
+
root: configuration.path.context,
|
|
643
|
+
resolve: postCSSResolver
|
|
634
644
|
}) : [], _module.preprocessor.cascadingStyleSheet.additional.plugins.pre.map(createEvaluateMapper('css.postcss')),
|
|
635
645
|
/*
|
|
636
646
|
NOTE: Checking path doesn't work if fonts
|
|
@@ -1106,8 +1116,8 @@ var webpackConfiguration = exports.webpackConfiguration = (0, _clientnode.extend
|
|
|
1106
1116
|
cacheGroups: {
|
|
1107
1117
|
defaultVendors: {
|
|
1108
1118
|
chunks: function chunks(chunk) {
|
|
1109
|
-
if (configuration.inPlace.javaScript) for (var
|
|
1110
|
-
var _name3 = _Object$keys[
|
|
1119
|
+
if (configuration.inPlace.javaScript) for (var _i8 = 0, _Object$keys = Object.keys(configuration.inPlace.javaScript); _i8 < _Object$keys.length; _i8++) {
|
|
1120
|
+
var _name3 = _Object$keys[_i8];
|
|
1111
1121
|
if (_name3 === '*' || _name3 === chunk.name) return false;
|
|
1112
1122
|
}
|
|
1113
1123
|
return true;
|