weboptimizer 4.0.95 → 4.0.96-1
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/{browser.js → dist/browser.js} +1 -1
- package/{configurator.js → dist/configurator.js} +9 -5
- package/{ejsLoader.js → dist/ejsLoader.js} +2 -2
- package/{eslint.config.js → dist/eslint.config.js} +1 -1
- package/{helper.js → dist/helper.js} +10 -2
- package/{index.js → dist/index.js} +2 -2
- package/{jestSetup.js → dist/jestSetup.js} +1 -1
- package/{plugins → dist/plugins}/HTMLTransformation.js +1 -1
- package/{plugins → dist/plugins}/InPlaceAssetsIntoHTML.js +12 -3
- package/{stylelintConfigurator.js → dist/stylelintConfigurator.js} +1 -1
- package/{type.js → dist/type.js} +1 -1
- package/{webpackConfigurator.js → dist/webpackConfigurator.js} +1 -1
- package/jest.json +1 -1
- package/package.json +32 -53
- package/readme.md +1 -1
- package/tsconfig.json +2 -0
- /package/{browser.d.ts → dist/browser.d.ts} +0 -0
- /package/{configurator.d.ts → dist/configurator.d.ts} +0 -0
- /package/{declarations.d.ts → dist/declarations.d.ts} +0 -0
- /package/{ejsLoader.d.ts → dist/ejsLoader.d.ts} +0 -0
- /package/{eslint.config.d.ts → dist/eslint.config.d.ts} +0 -0
- /package/{helper.d.ts → dist/helper.d.ts} +0 -0
- /package/{index.d.ts → dist/index.d.ts} +0 -0
- /package/{index.html.ejs → dist/index.html.ejs} +0 -0
- /package/{jestSetup.d.ts → dist/jestSetup.d.ts} +0 -0
- /package/{plugins → dist/plugins}/HTMLTransformation.d.ts +0 -0
- /package/{plugins → dist/plugins}/InPlaceAssetsIntoHTML.d.ts +0 -0
- /package/{stylelintConfigurator.d.ts → dist/stylelintConfigurator.d.ts} +0 -0
- /package/{type.d.ts → dist/type.d.ts} +0 -0
- /package/{webpackConfigurator.d.ts → dist/webpackConfigurator.d.ts} +0 -0
|
@@ -144,4 +144,4 @@ export const getInitializedBrowser = async (replaceWindow = true) => {
|
|
|
144
144
|
if (browser.initialized) wrappedCallback();else onCreatedListener.push(wrappedCallback);
|
|
145
145
|
return promise;
|
|
146
146
|
};
|
|
147
|
-
export default getInitializedBrowser;
|
|
147
|
+
export default getInitializedBrowser;
|
|
@@ -21,7 +21,7 @@ import fileSystemSynchronous from 'fs';
|
|
|
21
21
|
import fileSystem, { lstat, readFile, unlink } from 'fs/promises';
|
|
22
22
|
import path, { basename, dirname, join, resolve } from 'path';
|
|
23
23
|
import { determineAssetType, determineModuleFilePath, determineModuleLocations, resolveAutoInjection, resolveBuildConfigurationFilePaths, resolveModulesInFolders, normalizeGivenInjection, normalizePaths } from "./helper.js";
|
|
24
|
-
import packageConfiguration from '
|
|
24
|
+
import packageConfiguration from '../package.json' with { type: 'json' };
|
|
25
25
|
import { SubConfigurationTypes } from "./type.js";
|
|
26
26
|
// endregion
|
|
27
27
|
const {
|
|
@@ -45,7 +45,7 @@ await importFilesystemAPI();
|
|
|
45
45
|
* @param environment - Environment variables to take into account.
|
|
46
46
|
* @returns Nothing.
|
|
47
47
|
*/
|
|
48
|
-
export const load = async (context, currentWorkingDirectory = process.cwd(), commandLineArguments = process.argv, webOptimizerPath = import.meta.dirname,
|
|
48
|
+
export const load = async (context, currentWorkingDirectory = process.cwd(), commandLineArguments = process.argv, webOptimizerPath = resolve(import.meta.dirname, '..'),
|
|
49
49
|
/*
|
|
50
50
|
NOTE: We have to avoid that some pre-processor removes this
|
|
51
51
|
assignment.
|
|
@@ -89,11 +89,15 @@ environment = eval('process.env')) => {
|
|
|
89
89
|
// region load application specific configuration
|
|
90
90
|
let specificConfiguration = {};
|
|
91
91
|
try {
|
|
92
|
-
|
|
92
|
+
/*
|
|
93
|
+
NOTE: Imported modules are cached so we have to copy to avoid
|
|
94
|
+
leaking task specific merges into subsequent loads.
|
|
95
|
+
*/
|
|
96
|
+
specificConfiguration = copy((await optionalImport(join(metaConfiguration.default.path.context, 'package.json'), {
|
|
93
97
|
with: {
|
|
94
98
|
type: 'json'
|
|
95
99
|
}
|
|
96
|
-
})).default;
|
|
100
|
+
})).default);
|
|
97
101
|
} catch {
|
|
98
102
|
metaConfiguration.default.path.context = currentWorkingDirectory;
|
|
99
103
|
}
|
|
@@ -289,4 +293,4 @@ export const get = async () => {
|
|
|
289
293
|
if (!loadedConfiguration) loadedConfiguration = await load();
|
|
290
294
|
return loadedConfiguration;
|
|
291
295
|
};
|
|
292
|
-
export default get;
|
|
296
|
+
export default get;
|
|
@@ -257,7 +257,7 @@ export const loader = async function (source) {
|
|
|
257
257
|
return `${options.strict ? `'use strict';\n` : ''}${result}`;
|
|
258
258
|
}
|
|
259
259
|
if (typeof result === 'string') {
|
|
260
|
-
result = result.replace(new RegExp(`<script +processing-workaround *` + `(
|
|
260
|
+
result = result.replace(new RegExp(`<script +processing-workaround *` + `(?:= *(?:" *"|' *') *)?>([\\s\\S]*?)</ *script *>`, 'ig'), '$1').replace(new RegExp(`<script +processing(-+)-workaround *` + `(?:= *(?:" *"|' *') *)?>([\\s\\S]*?)</ *script *>`, 'ig'), '<script processing$1workaround>$2</script>');
|
|
261
261
|
return result;
|
|
262
262
|
}
|
|
263
263
|
return '';
|
|
@@ -275,4 +275,4 @@ export const loader = async function (source) {
|
|
|
275
275
|
callback(error);
|
|
276
276
|
}
|
|
277
277
|
};
|
|
278
|
-
export default loader;
|
|
278
|
+
export default loader;
|
|
@@ -42,7 +42,7 @@ for (const filePath of ['./tsconfig.eslint.json', './tsconfig.json', './tsconfig
|
|
|
42
42
|
let PROJECT_SPECIFIC_CONFIGURATION = [];
|
|
43
43
|
if (PACKAGE_CONFIGURATION.name !== 'weboptimizer') try {
|
|
44
44
|
// @ts-expect-error Need to create polymorphic type.
|
|
45
|
-
const config = await import('
|
|
45
|
+
const config = await import('../../../eslint.config.js');
|
|
46
46
|
const resolvedConfig = config.config ?? config.default ?? config.configuration ?? config;
|
|
47
47
|
PROJECT_SPECIFIC_CONFIGURATION = PROJECT_SPECIFIC_CONFIGURATION.concat(resolvedConfig);
|
|
48
48
|
} catch {
|
|
@@ -38,7 +38,15 @@ export const log = new Logger({
|
|
|
38
38
|
* "false" otherwise.
|
|
39
39
|
*/
|
|
40
40
|
export const isFilePathInLocation = (filePath, locationsToCheck) => {
|
|
41
|
-
|
|
41
|
+
filePath = resolve(filePath);
|
|
42
|
+
for (const pathToCheck of locationsToCheck) {
|
|
43
|
+
const location = resolve(pathToCheck);
|
|
44
|
+
/*
|
|
45
|
+
NOTE: Only match whole path segments to avoid treating sibling
|
|
46
|
+
locations sharing a prefix (e.g. ".github" vs. ".git") as nested.
|
|
47
|
+
*/
|
|
48
|
+
if (filePath === location || filePath.startsWith(location.endsWith(sep) ? location : `${location}${sep}`)) return true;
|
|
49
|
+
}
|
|
42
50
|
return false;
|
|
43
51
|
};
|
|
44
52
|
// endregion
|
|
@@ -622,4 +630,4 @@ export const getClosestPackageDescriptor = async (modulePath, fileName = 'packag
|
|
|
622
630
|
filePath
|
|
623
631
|
};
|
|
624
632
|
};
|
|
625
|
-
// endregion
|
|
633
|
+
// endregion
|
|
@@ -52,7 +52,7 @@ await importFilesystemAPI();
|
|
|
52
52
|
* @param environment - Environment variables to take into account.
|
|
53
53
|
* @returns Nothing.
|
|
54
54
|
*/
|
|
55
|
-
const main = async (context, currentWorkingDirectory = process.cwd(), commandLineArguments = process.argv, webOptimizerPath = import.meta.dirname,
|
|
55
|
+
const main = async (context, currentWorkingDirectory = process.cwd(), commandLineArguments = process.argv, webOptimizerPath = resolve(import.meta.dirname, '..'),
|
|
56
56
|
/*
|
|
57
57
|
NOTE: We have to avoid that some pre-processor removes this
|
|
58
58
|
assignment.
|
|
@@ -325,4 +325,4 @@ environment = eval('process.env')) => {
|
|
|
325
325
|
return clear;
|
|
326
326
|
};
|
|
327
327
|
if (import.meta.main) void main();
|
|
328
|
-
export default main;
|
|
328
|
+
export default main;
|
|
@@ -19,4 +19,4 @@ import { globalContext, optionalImport } from 'clientnode';
|
|
|
19
19
|
import { TextEncoder, TextDecoder } from 'util';
|
|
20
20
|
globalContext.TextEncoder = TextEncoder;
|
|
21
21
|
globalContext.TextDecoder = TextDecoder;
|
|
22
|
-
if (await optionalImport('jest-canvas-mock')) console.info('Canvas mocking module loaded.');
|
|
22
|
+
if (await optionalImport('jest-canvas-mock')) console.info('Canvas mocking module loaded.');
|
|
@@ -41,12 +41,19 @@ export class InPlaceAssetsIntoHTML {
|
|
|
41
41
|
const inPlace = (type, tag) => {
|
|
42
42
|
let settings = null;
|
|
43
43
|
let url = false;
|
|
44
|
+
let tagName = 'script';
|
|
44
45
|
if (tag.tagName === 'script') {
|
|
45
46
|
settings = this.options.javaScript;
|
|
46
47
|
url = tag.attributes.src;
|
|
47
|
-
} else if (tag.tagName === '
|
|
48
|
+
} else if (tag.tagName === 'link' && tag.attributes.rel === 'stylesheet') {
|
|
49
|
+
/*
|
|
50
|
+
NOTE: Style sheets are referenced via
|
|
51
|
+
"link" tags and have to be in placed as
|
|
52
|
+
"style" tags.
|
|
53
|
+
*/
|
|
48
54
|
settings = this.options.cascadingStyleSheet;
|
|
49
55
|
url = tag.attributes.href;
|
|
56
|
+
tagName = 'style';
|
|
50
57
|
}
|
|
51
58
|
if (!(url && typeof url === 'string')) return tag;
|
|
52
59
|
const name = publicPath ? url.replace(publicPath, '') : url;
|
|
@@ -55,13 +62,15 @@ export class InPlaceAssetsIntoHTML {
|
|
|
55
62
|
...tag.attributes
|
|
56
63
|
};
|
|
57
64
|
delete newAttributes.href;
|
|
65
|
+
delete newAttributes.rel;
|
|
58
66
|
delete newAttributes.src;
|
|
59
67
|
inPlacedAssetNames.push(name);
|
|
60
68
|
return {
|
|
61
69
|
...tag,
|
|
62
70
|
attributes: newAttributes,
|
|
63
71
|
innerHTML: compilation.assets[name].source(),
|
|
64
|
-
tagName
|
|
72
|
+
tagName,
|
|
73
|
+
voidTag: false
|
|
65
74
|
};
|
|
66
75
|
}
|
|
67
76
|
return tag;
|
|
@@ -79,4 +88,4 @@ export class InPlaceAssetsIntoHTML {
|
|
|
79
88
|
});
|
|
80
89
|
}
|
|
81
90
|
}
|
|
82
|
-
export default InPlaceAssetsIntoHTML;
|
|
91
|
+
export default InPlaceAssetsIntoHTML;
|
package/{type.js → dist/type.js}
RENAMED
package/jest.json
CHANGED
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
"\\.((css)|(less)|(sass)|(scss))$": "identity-obj-proxy"
|
|
5
5
|
},
|
|
6
6
|
"rootDir": "../../",
|
|
7
|
-
"setupFilesAfterEnv": ["./node_modules/weboptimizer/jestSetup.js"],
|
|
7
|
+
"setupFilesAfterEnv": ["./node_modules/weboptimizer/dist/jestSetup.js"],
|
|
8
8
|
"testPathIgnorePatterns": ["^(.*[/])?testHelper([./].*)?$"]
|
|
9
9
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weboptimizer",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.96-1",
|
|
4
4
|
"description": "A generic web optimizer, (module) bundler and development environment.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -30,67 +30,46 @@
|
|
|
30
30
|
},
|
|
31
31
|
"type": "module",
|
|
32
32
|
"exports": {
|
|
33
|
-
".": "
|
|
34
|
-
"./browser": "./browser.js",
|
|
35
|
-
"./browser.js": "./browser.js",
|
|
36
|
-
"./ejsLoader": "./ejsLoader.js",
|
|
37
|
-
"./ejsLoader.js": "./ejsLoader.js",
|
|
38
|
-
"./type": "./type.js",
|
|
39
|
-
"./type.js": "./type.js"
|
|
33
|
+
".": "./dist/index.js",
|
|
34
|
+
"./browser": "./dist/browser.js",
|
|
35
|
+
"./browser.js": "./dist/browser.js",
|
|
36
|
+
"./ejsLoader": "./dist/ejsLoader.js",
|
|
37
|
+
"./ejsLoader.js": "./dist/ejsLoader.js",
|
|
38
|
+
"./type": "./dist/type.js",
|
|
39
|
+
"./type.js": "./dist/type.js"
|
|
40
40
|
},
|
|
41
41
|
"bin": {
|
|
42
|
-
"weboptimizer": "index.js"
|
|
42
|
+
"weboptimizer": "dist/index.js"
|
|
43
43
|
},
|
|
44
44
|
"files": [
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"ejsLoader.d.ts",
|
|
51
|
-
"ejsLoader.js",
|
|
52
|
-
"eslint.config.d.ts",
|
|
53
|
-
"eslint.config.js",
|
|
54
|
-
"helper.d.ts",
|
|
55
|
-
"helper.js",
|
|
56
|
-
"index.d.ts",
|
|
57
|
-
"index.html.ejs",
|
|
58
|
-
"index.js",
|
|
45
|
+
"dist/*.d.ts",
|
|
46
|
+
"dist/*.js",
|
|
47
|
+
"dist/index.html.ejs",
|
|
48
|
+
"dist/plugins/*.d.ts",
|
|
49
|
+
"dist/plugins/*.js",
|
|
59
50
|
"jest.json",
|
|
60
|
-
"jestSetup.d.ts",
|
|
61
|
-
"jestSetup.js",
|
|
62
|
-
"plugins/HTMLTransformation.d.ts",
|
|
63
|
-
"plugins/HTMLTransformation.js",
|
|
64
|
-
"plugins/InPlaceAssetsIntoHTML.d.ts",
|
|
65
|
-
"plugins/InPlaceAssetsIntoHTML.js",
|
|
66
|
-
"stylelintConfigurator.d.ts",
|
|
67
|
-
"stylelintConfigurator.js",
|
|
68
51
|
"tsconfig.json",
|
|
69
52
|
"tsconfig.application.json",
|
|
70
|
-
"tsconfig.library.json"
|
|
71
|
-
"type.d.ts",
|
|
72
|
-
"type.js",
|
|
73
|
-
"webpackConfigurator.d.ts",
|
|
74
|
-
"webpackConfigurator.js"
|
|
53
|
+
"tsconfig.library.json"
|
|
75
54
|
],
|
|
76
55
|
"sideEffects": true,
|
|
77
56
|
"scripts": {
|
|
78
57
|
"build": "yarn build:types && yarn build:lint && yarn build:plain",
|
|
79
|
-
"build:copy-test-artefacts": "cd test/simple && shx touch yarn.lock && shx rm -rf node_modules && YARN_ENABLE_IMMUTABLE_INSTALLS=false yarn install; cd
|
|
80
|
-
"build:lint": " babel --extensions '.ts' --out-file eslint.config.js eslint.config.ts",
|
|
81
|
-
"build:plain": "
|
|
82
|
-
"build:test": " yarn clear && yarn build &&
|
|
83
|
-
"build:test:source-map": "yarn clear && yarn build &&
|
|
84
|
-
"build:types": "tsc --declaration --emitDeclarationOnly",
|
|
58
|
+
"build:copy-test-artefacts": "cd src/test/simple && shx touch yarn.lock && shx rm -rf node_modules && YARN_ENABLE_IMMUTABLE_INSTALLS=false yarn install; cd ../../../ && cd src/test/scss && shx touch yarn.lock && shx rm -rf node_modules && YARN_ENABLE_IMMUTABLE_INSTALLS=false yarn install; cd ../../../ && shx rm -rf node_modules/weboptimizer src/test/simple/node_modules/weboptimizer src/test/scss/node_modules/weboptimizer && shx mkdir -p node_modules/weboptimizer src/test/simple/node_modules/weboptimizer src/test/scss/node_modules/weboptimizer && copyCommand='shx cp -r dist *.json' && $copyCommand node_modules/weboptimizer/ && $copyCommand src/test/simple/node_modules/weboptimizer/ && $copyCommand src/test/scss/node_modules/weboptimizer/",
|
|
59
|
+
"build:lint": " babel --extensions '.ts' --out-file dist/eslint.config.js src/eslint.config.ts",
|
|
60
|
+
"build:plain": "babel --extensions '.ts' --ignore 'src/**/*.d.ts,src/eslint.config.ts,src/test/**' --copy-files --no-copy-ignored --out-dir dist src && shx cp src/declarations.d.ts dist/ && shx chmod +x dist/index.js && shx sed -i 's/(#!\\\\/usr\\\\/bin\\\\/env )babel-(node)/$1$2/' dist/index.js 1>/dev/null",
|
|
61
|
+
"build:test": " yarn clear && yarn build && yarn build:copy-test-artefacts && babel --extensions '.ts' --ignore 'src/test/**/*.d.ts,src/test/scss/**,src/test/simple/**' --out-dir dist/test src/test",
|
|
62
|
+
"build:test:source-map": "yarn clear && yarn build && yarn build:copy-test-artefacts && babel --extensions '.ts' --ignore 'src/test/**/*.d.ts,src/test/scss/**,src/test/simple/**' --source-maps inline --out-dir dist/test src/test",
|
|
63
|
+
"build:types": "tsc --declaration --emitDeclarationOnly --rootDir src --declarationDir dist",
|
|
85
64
|
"check": "yarn check:types && yarn lint",
|
|
86
65
|
"check:types": "tsc --noEmit",
|
|
87
|
-
"clear": "shx rm -rf apiDocumentation
|
|
88
|
-
"document": "yarn build:plain && jsdoc --package ./package.json --readme ./readme.md --destination apiDocumentation
|
|
66
|
+
"clear": "shx rm -rf apiDocumentation dist 'src/test/*/*.d.ts' 'src/test/**/yarn.lock' 'src/test/**/node_modules' '*.log' node_modules/weboptimizer .coverage .nyc_output",
|
|
67
|
+
"document": "yarn build:plain && jsdoc --package ./package.json --readme ./readme.md --destination apiDocumentation dist/*.js",
|
|
89
68
|
"lint": "yarn build:lint && yarn lint:base",
|
|
90
|
-
"lint:base": "eslint --no-warn-ignored
|
|
69
|
+
"lint:base": "eslint --config dist/eslint.config.js --no-warn-ignored src/*.ts src/*/*.ts src/test/*/*.ts",
|
|
91
70
|
"prepare": "yarn build",
|
|
92
71
|
"prettify": "yarn lint:base --fix || true",
|
|
93
|
-
"test": "yarn build:test && node --experimental-vm-modules node_modules/.bin/jest --config ./weboptimizerJest.json --noStackTrace --root-dir './' --test-regex '/test/.+\\\\.js$' test/browser.js test/configurator.js test/ejsLoader.js test/helper.js test/stylelintConfigurator.js test/index.js test/webpackConfigurator.js",
|
|
72
|
+
"test": "yarn build:test && node --experimental-vm-modules node_modules/.bin/jest --config ./weboptimizerJest.json --noStackTrace --root-dir './' --test-regex '/dist/test/.+\\\\.js$' dist/test/browser.js dist/test/configurator.js dist/test/ejsLoader.js dist/test/helper.js dist/test/HTMLTransformation.js dist/test/InPlaceAssetsIntoHTML.js dist/test/stylelintConfigurator.js dist/test/index.js dist/test/webpackConfigurator.js",
|
|
94
73
|
"test:coverage": "yarn test --ci --coverage --coverageReporters=text --coverageReporters=text-summary --silent --testLocationInResults",
|
|
95
74
|
"test:coverage:report": "yarn test:coverage --coverageDirectory=.coverage --coverageReporters=lcov --outputFile=lcov.info",
|
|
96
75
|
"test:watch": "yarn test --watch",
|
|
@@ -108,7 +87,7 @@
|
|
|
108
87
|
"babel-loader": "^10.1.1",
|
|
109
88
|
"babel-plugin-polyfill-corejs3": "^1.0.0",
|
|
110
89
|
"babel-plugin-transform-rewrite-imports": "^1.5.4",
|
|
111
|
-
"clientnode": "4.0.
|
|
90
|
+
"clientnode": "4.0.1527",
|
|
112
91
|
"core-js": "^3.51.0",
|
|
113
92
|
"ejs": "^7.0.2",
|
|
114
93
|
"exports-loader": "^5.0.0",
|
|
@@ -135,7 +114,7 @@
|
|
|
135
114
|
"@types/html-minifier": "^4.0.6",
|
|
136
115
|
"@types/html-minifier-terser": "^7.0.2",
|
|
137
116
|
"@types/imagemin": "^9.0.1",
|
|
138
|
-
"@types/node": "^26.6.
|
|
117
|
+
"@types/node": "^26.6.6",
|
|
139
118
|
"@types/postcss-import": "^14.0.3",
|
|
140
119
|
"@types/postcss-url": "^10.0.4",
|
|
141
120
|
"@types/webpack-env": "^1.18.8",
|
|
@@ -466,7 +445,7 @@
|
|
|
466
445
|
"arguments": [
|
|
467
446
|
"--config",
|
|
468
447
|
{
|
|
469
|
-
"__evaluate__": "`${webOptimizerPath}/webpackConfigurator.js`"
|
|
448
|
+
"__evaluate__": "`${webOptimizerPath}/dist/webpackConfigurator.js`"
|
|
470
449
|
},
|
|
471
450
|
"--progress"
|
|
472
451
|
],
|
|
@@ -518,7 +497,7 @@
|
|
|
518
497
|
},
|
|
519
498
|
"--config",
|
|
520
499
|
{
|
|
521
|
-
"__evaluate__": "path.relative(self.path.context, path.resolve(webOptimizerPath, 'stylelintConfigurator.js'))"
|
|
500
|
+
"__evaluate__": "path.relative(self.path.context, path.resolve(webOptimizerPath, 'dist', 'stylelintConfigurator.js'))"
|
|
522
501
|
}
|
|
523
502
|
],
|
|
524
503
|
"command": "stylelint",
|
|
@@ -528,7 +507,7 @@
|
|
|
528
507
|
"arguments": [
|
|
529
508
|
"--config",
|
|
530
509
|
{
|
|
531
|
-
"__evaluate__": "`'${webOptimizerPath}/eslint.config.js'`"
|
|
510
|
+
"__evaluate__": "`'${webOptimizerPath}/dist/eslint.config.js'`"
|
|
532
511
|
},
|
|
533
512
|
"--ignore-pattern",
|
|
534
513
|
{
|
|
@@ -552,7 +531,7 @@
|
|
|
552
531
|
"serve",
|
|
553
532
|
"--config",
|
|
554
533
|
{
|
|
555
|
-
"__evaluate__": "`'${webOptimizerPath}/webpackConfigurator.js'`"
|
|
534
|
+
"__evaluate__": "`'${webOptimizerPath}/dist/webpackConfigurator.js'`"
|
|
556
535
|
},
|
|
557
536
|
"--progress"
|
|
558
537
|
],
|
|
@@ -751,7 +730,7 @@
|
|
|
751
730
|
"scriptLoading": "module",
|
|
752
731
|
"template": {
|
|
753
732
|
"filePath": {
|
|
754
|
-
"__evaluate__": "`${filesystem.isFileSync(path.resolve(self.path.source.base, `${self.files.defaultHTML.filename}.ejs`)) ? path.resolve(self.path.source.base, `${self.files.defaultHTML.filename}.ejs`) : path.resolve(webOptimizerPath, 'index.html.ejs')}`"
|
|
733
|
+
"__evaluate__": "`${filesystem.isFileSync(path.resolve(self.path.source.base, `${self.files.defaultHTML.filename}.ejs`)) ? path.resolve(self.path.source.base, `${self.files.defaultHTML.filename}.ejs`) : path.resolve(webOptimizerPath, 'dist', 'index.html.ejs')}`"
|
|
755
734
|
},
|
|
756
735
|
"postCompileOptions": {
|
|
757
736
|
"_with": false,
|
package/readme.md
CHANGED
|
@@ -322,4 +322,4 @@ package.json (see the API-Documentation, link above, for more details):
|
|
|
322
322
|
2. Set Working directory:
|
|
323
323
|
/PATH/TO/PROJECT
|
|
324
324
|
3. Set configuration file path:
|
|
325
|
-
/PATH/TO/PROJECT/node_modules/weboptimizer/eslint.config.js
|
|
325
|
+
/PATH/TO/PROJECT/node_modules/weboptimizer/dist/eslint.config.js
|
package/tsconfig.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|