@alphabetabc/webpack-config
v0.0.14
Published
webpack
Downloads
15
Readme
@alphabetabc/webpack-config
Usage
const { defineConfig } = require('@alphabetabc/webpack-config');
module.exports = defineConfig({});
exports
export interface WebpackConfiguration extends webpack.Configuration {
/**
* rebuild config
* @method builder
*/
builder?: (config: webpack.Configuration) => webpack.Configuration;
}
type WebpackBuilderFunction = (env: any, args: any) => WebpackConfiguration;
export type defineConfig = (customConfig: WebpackConfiguration | WebpackBuilderFunction) => WebpackBuilderFunction;
export interface paths {
root: string;
appDirectory: string;
appSrc: string;
appIndex: string;
appIndexTs: string;
appPublic: string;
resolveApp: (relativepath: string) => string;
}
export type plugins = {
HtmlWebpackPlugin: HtmlWebpackPlugin;
};