interlockjs / interlock

JS bundler - inspired by Git, built on Babel.
MIT License
72 stars 7 forks source link

Support presets #69

Closed divmain closed 8 years ago

divmain commented 8 years ago

Like babel, it would be nice to wrap up a set of preconfigured options and/or plugins, and integrate them into the config via a preset config option.

Something like:

{
  srcRoot: __dirname,
  destRoot: path.join(__dirname, "dist"),
  entry: {
    "./app/example.js": "example.bundle.js",
    "./app/example-b.css": "example-b.build.css"
  }
  presets: [formidable]
}