1 | import { ExternalsEntry, GlobalEntry, ProjectConfig, ProjectConfigBase } from './project-config';
|
2 |
|
3 |
|
4 |
|
5 | export interface HtmlInjectOptions {
|
6 | runtimeChunkInline?: boolean;
|
7 | dlls?: boolean;
|
8 | resourceHints?: boolean;
|
9 | index?: string;
|
10 | indexOut?: string;
|
11 | baseHrefOut?: string;
|
12 | resourceHintsOut?: string;
|
13 | stylesOut?: string;
|
14 | runtimeInlineOut?: string;
|
15 | scriptsOut?: string;
|
16 | preloads?: string[];
|
17 | prefetches?: string[];
|
18 | customAttributes?: {
|
19 | [key: string]: string;
|
20 | };
|
21 | customScriptAttributes?: {
|
22 | [key: string]: string;
|
23 | };
|
24 | customLinkAttributes?: {
|
25 | [key: string]: string;
|
26 | };
|
27 | customResourceHintAttributes?: {
|
28 | [key: string]: string;
|
29 | };
|
30 | minify?: boolean;
|
31 | }
|
32 |
|
33 |
|
34 |
|
35 | export interface OutputHashingOptions {
|
36 | bundles?: boolean;
|
37 | chunks?: boolean;
|
38 | extractedAssets?: boolean;
|
39 | }
|
40 | export declare enum OutputHashingCompat {
|
41 | All = "all",
|
42 | Bundles = "bundles",
|
43 | Media = "media",
|
44 | None = "none"
|
45 | }
|
46 |
|
47 |
|
48 |
|
49 | export interface PerformanceOptions {
|
50 | hints?: 'warning' | 'error' | boolean;
|
51 | maxAssetSize?: number;
|
52 | maxEntrypointSize?: number;
|
53 | }
|
54 |
|
55 |
|
56 |
|
57 | export interface FileReplacementEntry {
|
58 | replace: string;
|
59 | with: string;
|
60 | }
|
61 |
|
62 |
|
63 |
|
64 | export interface BundleAnalyzerOptions {
|
65 | |
66 |
|
67 |
|
68 | reportFilename?: string;
|
69 | |
70 |
|
71 |
|
72 | generateStatsFile?: boolean;
|
73 | |
74 |
|
75 |
|
76 | statsFilename?: string;
|
77 | |
78 |
|
79 |
|
80 | openAnalyzer?: boolean;
|
81 | }
|
82 | export declare type WebpackStatsPreset = boolean | 'errors-only' | 'minimal' | 'none' | 'normal' | 'verbose';
|
83 | export interface WebpackStatsToJsonOptions {
|
84 | assets?: boolean;
|
85 | assetsSort?: string;
|
86 | cached?: boolean;
|
87 | cachedAssets?: boolean;
|
88 | children?: boolean;
|
89 | chunkModules?: boolean;
|
90 | chunkOrigins?: boolean;
|
91 | chunks?: boolean;
|
92 | chunksSort?: string;
|
93 | context?: string;
|
94 | depth?: boolean;
|
95 | entrypoints?: boolean;
|
96 | env?: boolean;
|
97 | errors?: boolean;
|
98 | errorDetails?: boolean;
|
99 | excludeAssets?: string | string[];
|
100 | excludeModules?: string | string[];
|
101 | exclude?: string | string[];
|
102 | hash?: boolean;
|
103 | maxModules?: number;
|
104 | modules?: boolean;
|
105 | modulesSort?: string;
|
106 | moduleTrace?: boolean;
|
107 | publicPath?: boolean;
|
108 | reasons?: boolean;
|
109 | source?: boolean;
|
110 | timings?: boolean;
|
111 | version?: boolean;
|
112 | warnings?: boolean;
|
113 | usedExports?: boolean;
|
114 | warningsFilter?: string | string[];
|
115 | performance?: boolean;
|
116 | providedExports?: boolean;
|
117 | }
|
118 | export interface WebpackStatsToStringOptions extends WebpackStatsToJsonOptions {
|
119 | colors?: boolean;
|
120 | }
|
121 |
|
122 |
|
123 |
|
124 | export interface AppProjectConfigBase extends ProjectConfigBase {
|
125 | |
126 |
|
127 |
|
128 | scripts?: (string | GlobalEntry)[];
|
129 | |
130 |
|
131 |
|
132 | polyfills?: string[] | string;
|
133 | |
134 |
|
135 |
|
136 | vendors?: string[];
|
137 | |
138 |
|
139 |
|
140 | libraryTarget?: 'var' | 'iife' | 'cjs' | 'commonjs' | 'commonjs2' | 'amd' | 'umd';
|
141 | |
142 |
|
143 |
|
144 | entry?: string;
|
145 | |
146 |
|
147 |
|
148 | vendorChunk?: boolean;
|
149 | |
150 |
|
151 |
|
152 | commonChunk?: boolean;
|
153 | |
154 |
|
155 |
|
156 | mainChunkName?: string;
|
157 | |
158 |
|
159 |
|
160 | polyfillsChunkName?: string;
|
161 | |
162 |
|
163 |
|
164 | vendorChunkName?: string;
|
165 | |
166 |
|
167 |
|
168 | htmlInject?: HtmlInjectOptions;
|
169 | |
170 |
|
171 |
|
172 | publicPath?: string;
|
173 | |
174 |
|
175 |
|
176 | baseHref?: string;
|
177 | |
178 |
|
179 |
|
180 | referenceDll?: boolean;
|
181 | |
182 |
|
183 |
|
184 | aot?: boolean;
|
185 | |
186 |
|
187 |
|
188 | outputHashing?: OutputHashingOptions | OutputHashingCompat;
|
189 | |
190 |
|
191 |
|
192 | extractCss?: boolean;
|
193 | |
194 |
|
195 |
|
196 | environmentVariables?: boolean | {
|
197 | [key: string]: boolean | string;
|
198 | };
|
199 | |
200 |
|
201 |
|
202 | performance?: PerformanceOptions;
|
203 | |
204 |
|
205 |
|
206 | lazyModules?: string[];
|
207 | |
208 |
|
209 |
|
210 | namedChunks?: boolean;
|
211 | |
212 |
|
213 |
|
214 | sourceMapDevTool?: 'eval' | 'inline-source-map' | 'cheap-eval-source-map' | 'cheap-source-map' | 'cheap-module-eval-source-map' | 'cheap-module-source-map' | 'eval-source-map' | 'source-map' | 'nosources-source-map' | 'hidden-source-map' | 'nosources-source-map' | '@eval' | '@inline-source-map' | '@cheap-eval-source-map' | '@cheap-source-map' | '@cheap-module-eval-source-map' | '@cheap-module-source-map' | '@eval-source-map' | '@source-map' | '@nosources-source-map' | '@hidden-source-map' | '@nosources-source-map' | '#eval' | '#inline-source-map' | '#cheap-eval-source-map' | '#cheap-source-map' | '#cheap-module-eval-source-map' | '#cheap-module-source-map' | '#eval-source-map' | '#source-map' | '#nosources-source-map' | '#hidden-source-map' | '#nosources-source-map' | '#@eval' | '#@inline-source-map' | '#@cheap-eval-source-map' | '#@cheap-source-map' | '#@cheap-module-eval-source-map' | '#@cheap-module-source-map' | '#@eval-source-map' | '#@source-map' | '#@nosources-source-map' | '#@hidden-source-map' | '#@nosources-source-map' | boolean;
|
215 | |
216 |
|
217 |
|
218 | sourceMapDevToolModuleFilenameTemplate?: '[absolute-resource-path]' | '[resource]' | '[resource-path]' | string;
|
219 | |
220 |
|
221 |
|
222 | sourceMapDevToolFallbackModuleFilenameTemplate?: '[absolute-resource-path]' | '[resource]' | '[resource-path]' | string;
|
223 | |
224 |
|
225 |
|
226 | webpackConfig?: string;
|
227 | |
228 |
|
229 |
|
230 | fileReplacements?: FileReplacementEntry[];
|
231 | |
232 |
|
233 |
|
234 | bundleAnalyzer?: BundleAnalyzerOptions | boolean;
|
235 | |
236 |
|
237 |
|
238 | stats?: WebpackStatsPreset | WebpackStatsToStringOptions;
|
239 | |
240 |
|
241 |
|
242 | externals?: ExternalsEntry | ExternalsEntry[];
|
243 | |
244 |
|
245 |
|
246 | nodeResolveFields?: string[];
|
247 | |
248 |
|
249 |
|
250 | i18nFile?: string;
|
251 | |
252 |
|
253 |
|
254 | i18nFormat?: string;
|
255 | |
256 |
|
257 |
|
258 | i18nLocale?: string;
|
259 | |
260 |
|
261 |
|
262 | i18nMissingTranslation?: 'error' | 'warning' | 'ignore';
|
263 | |
264 |
|
265 |
|
266 | i18nOutFile?: string;
|
267 | |
268 |
|
269 |
|
270 | i18nOutFormat?: string;
|
271 | |
272 |
|
273 |
|
274 | optimization?: boolean;
|
275 | |
276 |
|
277 |
|
278 | buildOptimizer?: boolean;
|
279 | |
280 |
|
281 |
|
282 | forkTypeChecker?: boolean;
|
283 | |
284 |
|
285 |
|
286 | concatenateModules?: boolean;
|
287 | |
288 |
|
289 |
|
290 | nodeModulesAsExternals?: boolean;
|
291 | |
292 |
|
293 |
|
294 | extractLicenses?: boolean;
|
295 | |
296 |
|
297 |
|
298 | extractLicenseOutputFilename?: string;
|
299 | |
300 |
|
301 |
|
302 | serviceWorker?: boolean;
|
303 | |
304 |
|
305 |
|
306 | ngswConfigPath?: string;
|
307 | }
|
308 | export interface AppEnvOverridesOptions {
|
309 | [name: string]: AppProjectConfigBase;
|
310 | }
|
311 |
|
312 |
|
313 |
|
314 | export interface AppProjectConfig extends AppProjectConfigBase, ProjectConfig<AppProjectConfigBase> {
|
315 | |
316 |
|
317 |
|
318 | envOverrides?: AppEnvOverridesOptions;
|
319 | }
|