Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/joe223/webpack-composer

A composer for Webpack Configuration (WIP).
https://github.com/joe223/webpack-composer

chain-api configuration webpack

Last synced: 4 months ago
JSON representation

A composer for Webpack Configuration (WIP).

Awesome Lists containing this project

README

        

# Webpack-Composer

[![](https://img.shields.io/npm/v/@cranejs/webpack-composer?style=flat&colorA=000000&colorB=000000)](https://www.npmjs.com/package/@cranejs/webpack-composer")
[![](https://img.shields.io/travis/com/joe223/webpack-composer?style=flat&colorA=000000&colorB=000000)](https://travis-ci.com/github/joe223/webpack-composer)
[![](https://img.shields.io/coveralls/github/joe223/webpack-composer/master?style=flat&colorA=000000&colorB=000000)](https://coveralls.io/github/joe223/webpack-composer?branch=master)

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

## Installation

```shell
yarn add @cranejs/webpack-composer
```
## Usage

You will get Type hint with TypeScript.

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