@alphabetabc/webpack-config
0.0.14 • Public • Published @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;
};
Package Sidebar
Install
npm i @alphabetabc/webpack-config
Weekly Downloads
Last publish