1 | import { NDKConfig } from '@nuofe/ndk-utilities';
|
2 | interface KV {
|
3 | [name: string]: any;
|
4 | }
|
5 | interface CSSModulesOptions {
|
6 | exclude?: RegExp | string | Array<RegExp | string>;
|
7 | useCSSModules?: boolean;
|
8 | useReactCSSModules?: boolean;
|
9 | }
|
10 | export interface BuildConfig extends NDKConfig {
|
11 | historyApiFallback?: boolean;
|
12 | https?: boolean | KV;
|
13 | hostname?: string;
|
14 | port?: number;
|
15 | index?: string;
|
16 | proxy?: KV;
|
17 | alias?: KV;
|
18 | copy?: KV;
|
19 | define?: KV;
|
20 | externals?: KV;
|
21 | entry?: string;
|
22 | favicon?: string;
|
23 | template?: string;
|
24 | outputPath?: string;
|
25 | staticUrl?: string;
|
26 | theme?: string | KV;
|
27 | useCSSModules?: boolean | string | CSSModulesOptions;
|
28 | useCleanPlugin?: boolean;
|
29 | useCommonJS?: boolean;
|
30 | useESLint?: boolean;
|
31 | useGzip?: boolean | string[];
|
32 | useImport?: boolean;
|
33 | useNUI?: boolean;
|
34 | usePx2rem?: boolean | KV;
|
35 | useRuntimeChunk?: boolean;
|
36 | useSourceMap?: boolean;
|
37 | useVUX?: boolean;
|
38 | }
|
39 | export declare const defaultBuildConfig: {
|
40 | historyApiFallback: boolean;
|
41 | https: boolean;
|
42 | hostname: string;
|
43 | port: number;
|
44 | index: string;
|
45 | proxy: {};
|
46 | alias: {};
|
47 | copy: {};
|
48 | define: {};
|
49 | externals: {};
|
50 | entry: string;
|
51 | favicon: string;
|
52 | template: string;
|
53 | outputPath: string;
|
54 | staticUrl: string;
|
55 | theme: {};
|
56 | useCSSModules: boolean;
|
57 | useCleanPlugin: boolean;
|
58 | useCommonJS: boolean;
|
59 | useESLint: boolean;
|
60 | useGzip: boolean;
|
61 | useImport: boolean;
|
62 | useNUI: boolean;
|
63 | usePx2rem: boolean;
|
64 | useRuntimeChunk: boolean;
|
65 | useSourceMap: boolean;
|
66 | useVUX: boolean;
|
67 | };
|
68 | declare const _default: (options: import("@nuofe/ndk-utilities/lib/options/init").Options<BuildConfig>) => Promise<void>;
|
69 | export default _default;
|