joe223 / webpack-composer

A composer for Webpack Configuration (WIP).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A composer for Webpack Configuration (WIP).


Languages

Language:TypeScript 79.7%Language:JavaScript 20.3%