htmlgaga
Version:
Manage non-SPA pages with webpack and React.js
39 lines (38 loc) • 896 B
TypeScript
import ServerSideRender from '../ProdBuilder/ServerSideRender/index';
interface Plugin {
apply(compiler: ServerSideRender): void;
}
export interface HtmlgagaConfig {
html: {
pretty: boolean;
preload: {
script: boolean;
style: boolean;
};
};
plugins?: Plugin[];
assetPath?: string;
globalScripts?: [string, {
src: string;
global: string;
}][];
}
export declare const defaultConfiguration: {
html: {
pretty: boolean;
preload: {
style: boolean;
script: boolean;
};
};
plugins: any[];
assetPath: string;
};
export default class Builder {
pagesDir: string;
config: HtmlgagaConfig;
constructor(pagesDir: string);
applyOptionsDefaults(): void;
resolveConfig(): Promise<void>;
}
export {};