Simplify the modification of webpack configuration. This repository is WIP, do not use it in production.
yarn add @cranejs/webpack-composer
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()