@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;
};

Readme

Keywords

Package Sidebar

Install

npm i @alphabetabc/webpack-config

Weekly Downloads

0

Version

0.0.14

License

MIT

Unpacked Size

10 kB

Total Files

7

Last publish

Collaborators

  • alphabet_vis