Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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).
- Host: GitHub
- URL: https://github.com/joe223/webpack-composer
- Owner: joe223
- Created: 2021-01-20T16:54:32.000Z (about 4 years ago)
- Default Branch: dev
- Last Pushed: 2021-01-26T09:00:44.000Z (about 4 years ago)
- Last Synced: 2024-10-01T16:25:26.030Z (4 months ago)
- Topics: chain-api, configuration, webpack
- Language: TypeScript
- Homepage:
- Size: 101 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```
## UsageYou 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()
```