cake-bundle
v0.2.21
Published
Bundle up JavaScript Applications
Downloads
6
Readme
cake-handroll
Adds handroll
helper to shortcake. Bundle up your JavaScript apps using
handroll.
Install
$ npm install cake-bundle --save-dev
Usage
require 'shortcake'
use 'cake-bundle'
task 'build', 'build project', ['build:lib', 'build:browser']
task 'build:lib', 'build project as library for bundlers + node', ->
bundled = await bundle
entry: 'src/index.coffee'
external: true
bundled.write
format: 'es'
bundled.write
format: 'cjs'
task 'build:browser', 'build project as single-minified js file'
bundle
entry: 'src/browser.coffee'
dest: 'project.min.js'
format: 'browser'
minify: true