weboptimizer 2.0.1107 → 2.0.1111
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 +21 -2
- package/configurator.js +344 -295
- package/ejsLoader.js +6 -5
- package/index.d.ts +10 -1
- package/index.js +646 -572
- package/package.json +23 -3
- package/stylelintConfigurator.js +2 -1
- package/type.d.ts +5 -1
- package/webpackConfigurator.js +143 -143
package/configurator.d.ts
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
/// <reference types="webpack-env" />
|
|
1
3
|
import { ResolvedConfiguration } from './type';
|
|
2
|
-
export declare
|
|
3
|
-
|
|
4
|
+
export declare let loadedConfiguration: null | ResolvedConfiguration;
|
|
5
|
+
/**
|
|
6
|
+
* Main entry point to determine current configuration.
|
|
7
|
+
* @param context - Location from where to build current application.
|
|
8
|
+
* @param currentWorkingDirectory - Current working directory to use as
|
|
9
|
+
* reference.
|
|
10
|
+
* @param commandLineArguments - Arguments to take into account.
|
|
11
|
+
* @param webOptimizerPath - Current optimizer context path.
|
|
12
|
+
* @param environment - Environment variables to take into account.
|
|
13
|
+
*
|
|
14
|
+
* @returns Nothing.
|
|
15
|
+
*/
|
|
16
|
+
export declare const load: (context?: string | undefined, currentWorkingDirectory?: string, commandLineArguments?: Array<string>, webOptimizerPath?: string, environment?: NodeJS.ProcessEnv) => ResolvedConfiguration;
|
|
17
|
+
/**
|
|
18
|
+
* Get cached or determined configuration object.
|
|
19
|
+
* @returns Nothing.
|
|
20
|
+
*/
|
|
21
|
+
export declare const get: () => ResolvedConfiguration;
|
|
22
|
+
export default get;
|