-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplugin-options.ts
73 lines (67 loc) · 1.64 KB
/
plugin-options.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
import type {
FileReplacement,
InlineStyleLanguage,
StylePreprocessorOptions,
} from '@nx/angular-rspack-compiler';
export interface DevServerOptions {
port?: number;
ssl?: boolean;
sslKey?: string;
sslCert?: string;
proxyConfig?: string;
}
export interface OptimizationOptions {
scripts?: boolean;
styles?: boolean;
fonts?: boolean;
}
export type OutputHashing = 'none' | 'all' | 'media' | 'bundles';
export type HashFormat = {
chunk: string;
extract: string;
file: string;
script: string;
};
export interface OutputPath {
base: string;
browser: string;
server: string;
media: string;
}
export interface PluginAngularOptions {
index: string;
browser: string;
server?: string;
ssr?:
| boolean
| {
entry: string;
experimentalPlatform?: 'node' | 'neutral';
};
polyfills: string[];
assets: string[];
styles: string[];
scripts: string[];
outputPath: string | OutputPath;
fileReplacements: FileReplacement[];
aot: boolean;
inlineStyleLanguage: InlineStyleLanguage;
tsConfig: string;
optimization?: boolean | OptimizationOptions;
outputHashing?: OutputHashing;
hasServer: boolean;
skipTypeChecking: boolean;
useTsProjectReferences?: boolean;
namedChunks?: boolean;
commonChunk?: boolean;
vendorChunk?: boolean;
stylePreprocessorOptions?: StylePreprocessorOptions;
devServer?: DevServerOptions;
}
export interface NormalizedPluginAngularOptions extends PluginAngularOptions {
advancedOptimizations: boolean;
devServer: DevServerOptions & { port: number };
optimization: boolean | OptimizationOptions;
outputHashing: OutputHashing;
outputPath: OutputPath;
}