/webpack-composer

A composer for Webpack Configuration (WIP).

Primary LanguageTypeScript

Webpack-Composer

Simplify the modification of webpack configuration. This repository is WIP, do not use it in production.

Installation

yarn add @cranejs/webpack-composer

Usage

You will get Type hint with TypeScript.

const config = Composer({
    entry: 'src/entry.js',
    context: 'foo',
    output: {
        path: 'bar'
    },
    resolve: {
        extensions: ['.js', '.jsx', '.jsm']
    }
})
    .context('bar')
    .output.path(path.resolve(__dirname, 'dist'))
    .resolve.$delete()
    .$config()