0.2.1 • Published 9 years ago
fly-minify v0.2.1
Usage
This plugin works for js
, html
, css
, and img
files. Just pass one of those as opts.ext
and you'll be good to go!
Currently I'm aware of no relevant options for this package. If you think
name
(or somehowstream
) could be of use, they will properly pass through.If you would like more control over the minifiers, you'll need to either create a separate plugin for a minifier package with more control, submit a PR to
minify
, and/or submit a PR tominify
's deps.Whatever you decide, let me know how it works out or if you need help!
Install
npm install -D fly-minify
Example
export default function* () {
yield this.tasks.html()
yield this.tasks.javascript()
}
export function* html () {
yield this.clear("lib/html")
yield this
.source("src/**/*.html")
.minify({ ext: "html" })
.target("lib/html")
}
export function* javascript () {
yield this.clear("lib/js")
yield this
.source("src/**/*.js")
.minify({ ext: "js" })
.target("lib/js")
}
License
MIT © Jake Russo et al