aurelia-bundler
Version:
A library for bundling JavaScript, HTML and CSS for use with SystemJS.
40 lines (36 loc) • 959 B
text/typescript
export type FetchHook = (load: any, fetch: (load: any) => any) => void;
export type Inject = { indexFile: string, destFile: string };
export type ConfigBody = {
skip?: boolean;
htmlimport?: boolean;
includes: string[] | string;
excludes: string[];
options: {
inject: boolean | Inject
sourceMaps: boolean | string,
depCache: boolean,
minify: boolean,
htmlminopts?: any,
cssminopts?: any,
rev?: boolean,
fetch: FetchHook
};
};
export type ConfigHeader = {
force?: boolean;
baseURL: string;
outputPath?: string,
configPath: string | string[];
injectionConfigPath?: string;
builderCfg?: any;
};
export type Config = ConfigHeader & { bundles: {[name: string]: ConfigBody }};
export type BundleConfig = ConfigHeader & ConfigBody & { bundleName: string };
export interface SystemConfig {
defaultJSExtensions: boolean;
baseURL: string;
map: any;
depCache: any;
bundles: any;
packages?: any;
};