weboptimizer 2.0.1182 → 2.0.1183

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/configurator.d.ts CHANGED
@@ -1,5 +1,8 @@
1
1
  /// <reference types="node" />
2
2
  /// <reference types="webpack-env" />
3
+ /// <reference types="node" />
4
+ /// <reference types="node" />
5
+ /// <reference types="node" />
3
6
  import { ResolvedConfiguration } from './type';
4
7
  export declare let loadedConfiguration: null | ResolvedConfiguration;
5
8
  /**
@@ -13,7 +16,7 @@ export declare let loadedConfiguration: null | ResolvedConfiguration;
13
16
  *
14
17
  * @returns Nothing.
15
18
  */
16
- export declare const load: (context?: string | undefined, currentWorkingDirectory?: string, commandLineArguments?: Array<string>, webOptimizerPath?: string, environment?: NodeJS.ProcessEnv) => ResolvedConfiguration;
19
+ export declare const load: (context?: string, currentWorkingDirectory?: string, commandLineArguments?: Array<string>, webOptimizerPath?: string, environment?: NodeJS.ProcessEnv) => ResolvedConfiguration;
17
20
  /**
18
21
  * Get cached or determined configuration object.
19
22
  * @returns Nothing.
package/index.d.ts CHANGED
@@ -1,6 +1,9 @@
1
1
  #!/usr/bin/env babel-node
2
2
  /// <reference types="node" />
3
3
  /// <reference types="webpack-env" />
4
+ /// <reference types="node" />
5
+ /// <reference types="node" />
6
+ /// <reference types="node" />
4
7
  /**
5
8
  * Main entry point.
6
9
  * @param context - Location from where to build current application.
@@ -12,5 +15,5 @@
12
15
  *
13
16
  * @returns Nothing.
14
17
  */
15
- declare const main: (context?: string | undefined, currentWorkingDirectory?: string, commandLineArguments?: Array<string>, webOptimizerPath?: string, environment?: NodeJS.ProcessEnv) => Promise<() => void>;
18
+ declare const main: (context?: string, currentWorkingDirectory?: string, commandLineArguments?: Array<string>, webOptimizerPath?: string, environment?: NodeJS.ProcessEnv) => Promise<() => void>;
16
19
  export default main;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "weboptimizer",
3
- "version": "2.0.1182",
3
+ "version": "2.0.1183",
4
4
  "description": "A generic web optimizer, (module) bundler and development environment.",
5
5
  "keywords": [
6
6
  "webpack",
@@ -1327,12 +1327,12 @@ var webpackConfiguration = _clientnode["default"].extend(true, {
1327
1327
  chunkIds: configuration.debug ? 'named' : 'total-size',
1328
1328
  moduleIds: configuration.debug ? 'named' : 'size',
1329
1329
  // region common chunks
1330
- splitChunks: !configuration.injection.chunks || configuration.targetTechnology.payload === 'node' || configuration.givenCommandLineArguments[2] === 'test' ? {
1330
+ splitChunks: _clientnode["default"].extend(true, !configuration.injection.chunks || configuration.targetTechnology.payload === 'node' || configuration.givenCommandLineArguments[2] === 'test' ? {
1331
1331
  cacheGroups: {
1332
1332
  "default": false,
1333
1333
  defaultVendors: false
1334
1334
  }
1335
- } : _clientnode["default"].extend(true, {
1335
+ } : {
1336
1336
  chunks: 'all',
1337
1337
  cacheGroups: {
1338
1338
  defaultVendors: {