weboptimizer 2.0.1108 → 2.0.1109

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "weboptimizer",
3
- "version": "2.0.1108",
3
+ "version": "2.0.1109",
4
4
  "description": "A generic web optimizer, (module) bundler and development environment.",
5
5
  "keywords": [
6
6
  "webpack",
@@ -489,6 +489,8 @@
489
489
  "'**/plugins/*'",
490
490
  "--ignore-pattern",
491
491
  "'*.d.ts'",
492
+ "--resolve-plugins-relative-to",
493
+ ".",
492
494
  "'**/*.{jsx,ts,tsx}'"
493
495
  ],
494
496
  "command": "eslint",
@@ -1354,6 +1356,24 @@
1354
1356
  "__evaluate__": "self.files.compose.image ? path.resolve(self.path.source.asset.image, path.relative(self.path.target.asset.image, self.files.compose.image)) : null"
1355
1357
  }
1356
1358
  ],
1359
+ "tidyUpGlobs": {
1360
+ "options": {
1361
+ "glob": {
1362
+ "ignore": [
1363
+ "node_modules/**/*.css.js",
1364
+ "**/node_modules/**/*.css.js"
1365
+ ]
1366
+ }
1367
+ },
1368
+ "pattern": [
1369
+ {
1370
+ "__evaluate__": "path.resolve(self.path.target.base, '*.css.js')"
1371
+ },
1372
+ {
1373
+ "__evaluate__": "path.resolve(self.path.target.base, '**/*.css.js')"
1374
+ }
1375
+ ]
1376
+ },
1357
1377
  "tidyUpOnClear": [
1358
1378
  {
1359
1379
  "__evaluate__": "path.resolve(self.path.target.base, 'yarn-error.log')"
@@ -1631,7 +1651,7 @@
1631
1651
  "files": {
1632
1652
  "compose": {
1633
1653
  "cascadingStyleSheet": {
1634
- "__evaluate__": "self.debug && 2 < self.givenCommandLineArguments.length && ['serve', 'test:browser'].includes(self.givenCommandLineArguments[2]) ? null : `${path.resolve(self.path.target.asset.cascadingStyleSheet, `[name]${self.path.target.asset.cascadingStyleSheet === self.path.source.asset.cascadingStyleSheet ? '.compiled' : ''}.css`)}?${self.hashAlgorithm}=[chunkhash]`"
1654
+ "__evaluate__": "self.debug && 2 < self.givenCommandLineArguments.length && ['serve', 'test:browser'].includes(self.givenCommandLineArguments[2]) ? null : ({chunk: {name}}) => `${path.relative(self.path.target.base, path.resolve(self.path.target.asset.cascadingStyleSheet, `${path.basename(name, '.css')}${self.path.target.asset.cascadingStyleSheet === self.path.source.asset.cascadingStyleSheet ? '.compiled' : ''}.css`))}?${self.hashAlgorithm}=[chunkhash]`"
1635
1655
  }
1636
1656
  },
1637
1657
  "defaultHTML": {
@@ -27,7 +27,8 @@ exports["default"] = void 0;
27
27
  var _configurator = _interopRequireDefault(require("./configurator"));
28
28
 
29
29
  // endregion
30
- module.exports = _configurator["default"].stylelint;
30
+ var configuration = (0, _configurator["default"])();
31
+ module.exports = configuration.stylelint;
31
32
  var _default = module.exports; // region vim modline
32
33
  // vim: set tabstop=4 shiftwidth=4 expandtab:
33
34
  // vim: foldmethod=marker foldmarker=region,endregion:
package/type.d.ts CHANGED
@@ -109,6 +109,10 @@ export interface PathConfiguration extends BasePathConfiguration {
109
109
  context: string;
110
110
  ignore: Array<string>;
111
111
  tidyUp: Array<string>;
112
+ tidyUpGlobs: {
113
+ options: RemoveDirectoryRecursivelyOptions;
114
+ pattern: Array<string>;
115
+ };
112
116
  tidyUpOnClear: Array<string>;
113
117
  tidyUpOnClearGlobs: {
114
118
  options: RemoveDirectoryRecursivelyOptions;
@@ -279,7 +283,7 @@ export interface ResolvedConfiguration {
279
283
  files: {
280
284
  additionalPaths: Array<string>;
281
285
  compose: {
282
- cascadingStyleSheet: string;
286
+ cascadingStyleSheet: string | ((_asset: unknown) => string);
283
287
  image: string;
284
288
  javaScript: string;
285
289
  };