@peartree/build-toolkit
v0.7.2
Published
Default description for build
Downloads
6
Readme
Build Toolkit
Table of Contents
The Problem
Declarative configuration is great but the learning cost is high for the majority of folk. Sometimes you just want to take a config and sprinkle on a few settings. This is especially true when you may be using several bundlers for the same codebase (e.g. web/mobile)
This Solution
Bundler config util offers a grab bag of imperative "plugins" that understand the config they're operating on. Just stack them up and get a perfect config out the other end
We have found for our projects this really helps with auditing what it is we want our bundler to actually do for us. It's far too easy for codebases and bundler configs to get out of sync
Installation
yarn add -D @peartree/webpack-config-util
// webpack.config.js
const {mainFields} = require('@peartree/webpack-config-util')
module.exports =
And repeat
until finished
End with an example of getting some data out of the system or using it for a little demo.