0.1.0 • Published 4 years ago

@cranejs/webpack-composer v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

Webpack-Composer

npm.io npm.io npm.io

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()