alloc / cush

WIP module bundler 🎁
MIT License
0 stars 0 forks source link

Bundle declarations in cush.config.js #17

Closed aleclarson closed 6 years ago

aleclarson commented 6 years ago
exports.bundles = {
  'index.js': 'bundle.web.js',
  'index.css': 'bundle.web.css',
};

Each property name is the main module (relative to project root) of its bundle.

Each property value can be a string or object. When a string, it's the filename of the compiled bundle. In this case, you must include the target platform in the filename (eg: web). When an object, it's the bundle options.

The output filename is used as-is for development bundles, while production bundles are saved with an included content hash.

aleclarson commented 6 years ago

Supported by cush-cdn.

We'll want to support this in cush-cli eventually.