weboptimizer 2.0.1493 → 2.0.1494
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/package.json +11 -11
- package/plugins/InPlaceAssetsIntoHTML.js +1 -1
- package/type.d.ts +4 -4
- package/webpackConfigurator.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weboptimizer",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1494",
|
|
4
4
|
"description": "A generic web optimizer, (module) bundler and development environment.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"babel-loader": "^9.1.3",
|
|
101
101
|
"babel-plugin-transform-modern-regexp": "^0.0.6",
|
|
102
102
|
"babel-preset-minify": "^0.5.2",
|
|
103
|
-
"clientnode": "3.0.
|
|
103
|
+
"clientnode": "3.0.1170",
|
|
104
104
|
"ejs": "^3.1.10",
|
|
105
105
|
"exports-loader": "^5.0.0",
|
|
106
106
|
"extract-loader": "^5.1.0",
|
|
@@ -120,24 +120,24 @@
|
|
|
120
120
|
"devDependencies": {
|
|
121
121
|
"@babel/cli": "^7.24.8",
|
|
122
122
|
"@babel/eslint-parser": "^7.25.1",
|
|
123
|
-
"@stylistic/eslint-plugin": "^2.6.
|
|
123
|
+
"@stylistic/eslint-plugin": "^2.6.4",
|
|
124
124
|
"@types/ejs": "^3.1.5",
|
|
125
125
|
"@types/eslint": "^9.6.0",
|
|
126
126
|
"@types/html-minifier": "^4.0.5",
|
|
127
127
|
"@types/html-minifier-terser": "^7.0.2",
|
|
128
128
|
"@types/imagemin": "^9.0.0",
|
|
129
|
-
"@types/node": "^22.1
|
|
129
|
+
"@types/node": "^22.4.1",
|
|
130
130
|
"@types/postcss-import": "^14.0.3",
|
|
131
131
|
"@types/postcss-url": "^10.0.4",
|
|
132
132
|
"@types/webpack-env": "^1.18.5",
|
|
133
133
|
"@types/webpack-sources": "^3.2.3",
|
|
134
|
-
"@typescript-eslint/parser": "^8.0
|
|
134
|
+
"@typescript-eslint/parser": "^8.1.0",
|
|
135
135
|
"css-loader": "^7.1.2",
|
|
136
|
-
"cssnano": "^7.0.
|
|
136
|
+
"cssnano": "^7.0.5",
|
|
137
137
|
"documentation-website": "^1.0.330",
|
|
138
|
-
"eslint": "^9.
|
|
138
|
+
"eslint": "^9.9.0",
|
|
139
139
|
"eslint-config-google": "^0.14.0",
|
|
140
|
-
"eslint-plugin-jsdoc": "^50.
|
|
140
|
+
"eslint-plugin-jsdoc": "^50.2.2",
|
|
141
141
|
"favicons": "^7.2.0",
|
|
142
142
|
"favicons-webpack-plugin": "^6.0.1",
|
|
143
143
|
"globals": "^15.9.0",
|
|
@@ -151,15 +151,15 @@
|
|
|
151
151
|
"postcss-fontpath": "^1.0.0",
|
|
152
152
|
"postcss-import": "^16.1.0",
|
|
153
153
|
"postcss-loader": "^8.1.1",
|
|
154
|
-
"postcss-preset-env": "^10.0.
|
|
154
|
+
"postcss-preset-env": "^10.0.2",
|
|
155
155
|
"postcss-sprites": "^4.2.1",
|
|
156
156
|
"postcss-url": "^10.1.3",
|
|
157
157
|
"shx": "^0.3.4",
|
|
158
158
|
"style-loader": "^4.0.0",
|
|
159
|
-
"stylelint": "^16.8.
|
|
159
|
+
"stylelint": "^16.8.2",
|
|
160
160
|
"stylelint-config-standard": "^36.0.1",
|
|
161
161
|
"stylelint-config-standard-scss": "^13.1.0",
|
|
162
|
-
"typescript-eslint": "^8.0
|
|
162
|
+
"typescript-eslint": "^8.1.0",
|
|
163
163
|
"typescript-plugin-css-modules": "^5.1.0",
|
|
164
164
|
"workbox-webpack-plugin": "^7.1.0"
|
|
165
165
|
},
|
|
@@ -45,7 +45,7 @@ var InPlaceAssetsIntoHTML = exports.InPlaceAssetsIntoHTML = /*#__PURE__*/functio
|
|
|
45
45
|
var inPlacedAssetNames = [];
|
|
46
46
|
hooks.alterAssetTagGroups.tap('inPlaceHTMLAssets', function (assets) {
|
|
47
47
|
var inPlace = function inPlace(type, tag) {
|
|
48
|
-
var settings;
|
|
48
|
+
var settings = null;
|
|
49
49
|
var url = false;
|
|
50
50
|
if (tag.tagName === 'script') {
|
|
51
51
|
settings = _this.options.javaScript;
|
package/type.d.ts
CHANGED
|
@@ -83,8 +83,8 @@ export interface HTMLTransformationOptions {
|
|
|
83
83
|
files: Array<HTMLConfiguration>;
|
|
84
84
|
}
|
|
85
85
|
export interface InPlaceAssetsIntoHTMLOptions {
|
|
86
|
-
cascadingStyleSheet: InPlaceAssetConfiguration;
|
|
87
|
-
javaScript: InPlaceAssetConfiguration;
|
|
86
|
+
cascadingStyleSheet: InPlaceAssetConfiguration | null;
|
|
87
|
+
javaScript: InPlaceAssetConfiguration | null;
|
|
88
88
|
htmlPlugin: typeof HtmlWebpackPlugin;
|
|
89
89
|
}
|
|
90
90
|
export interface AssetPathConfiguration {
|
|
@@ -241,12 +241,12 @@ export interface InPlaceAssetConfiguration {
|
|
|
241
241
|
head?: Array<RegExp | string> | RegExp | string;
|
|
242
242
|
}
|
|
243
243
|
export interface InPlaceConfiguration {
|
|
244
|
-
cascadingStyleSheet: InPlaceAssetConfiguration;
|
|
244
|
+
cascadingStyleSheet: InPlaceAssetConfiguration | null;
|
|
245
245
|
externalLibrary: {
|
|
246
246
|
normal: boolean;
|
|
247
247
|
dynamic: boolean;
|
|
248
248
|
};
|
|
249
|
-
javaScript: InPlaceAssetConfiguration;
|
|
249
|
+
javaScript: InPlaceAssetConfiguration | null;
|
|
250
250
|
otherMaximumFileSizeLimitInByte: number;
|
|
251
251
|
}
|
|
252
252
|
export interface ResolvedConfiguration {
|
package/webpackConfigurator.js
CHANGED
|
@@ -229,7 +229,7 @@ pluginInstances.push({
|
|
|
229
229
|
.replace(/##-#-#-##/g, '%>')
|
|
230
230
|
*/
|
|
231
231
|
|
|
232
|
-
if (plugins.HTML && htmlAvailable && !['serve', 'test:browser'].includes(configuration.givenCommandLineArguments[2]) &&
|
|
232
|
+
if (plugins.HTML && htmlAvailable && !['serve', 'test:browser'].includes(configuration.givenCommandLineArguments[2]) && configuration.inPlace.cascadingStyleSheet && Object.keys(configuration.inPlace.cascadingStyleSheet).length || configuration.inPlace.javaScript && Object.keys(configuration.inPlace.javaScript).length) pluginInstances.push(new _InPlaceAssetsIntoHTML["default"]({
|
|
233
233
|
cascadingStyleSheet: configuration.inPlace.cascadingStyleSheet,
|
|
234
234
|
javaScript: configuration.inPlace.javaScript,
|
|
235
235
|
htmlPlugin: plugins.HTML
|
|
@@ -1080,7 +1080,7 @@ var webpackConfiguration = exports.webpackConfiguration = (0, _clientnode.extend
|
|
|
1080
1080
|
cacheGroups: {
|
|
1081
1081
|
defaultVendors: {
|
|
1082
1082
|
chunks: function chunks(chunk) {
|
|
1083
|
-
if (
|
|
1083
|
+
if (configuration.inPlace.javaScript) for (var _i7 = 0, _Object$keys = Object.keys(configuration.inPlace.javaScript); _i7 < _Object$keys.length; _i7++) {
|
|
1084
1084
|
var _name3 = _Object$keys[_i7];
|
|
1085
1085
|
if (_name3 === '*' || _name3 === chunk.name) return false;
|
|
1086
1086
|
}
|