weboptimizer 2.0.1182 → 2.0.1185
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 +4 -1
- package/index.d.ts +4 -1
- package/package.json +1 -1
- package/webpackConfigurator.js +2 -2
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
|
|
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
|
|
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
package/webpackConfigurator.js
CHANGED
|
@@ -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
|
-
} :
|
|
1335
|
+
} : {
|
|
1336
1336
|
chunks: 'all',
|
|
1337
1337
|
cacheGroups: {
|
|
1338
1338
|
defaultVendors: {
|