Rebuild only changed files in aster.
First, install aster-changed
as a development dependency:
npm install --save-dev aster-changed
Then, add it to your build script:
var aster = require('aster');
var changed = require('aster-changed');
aster.src('src/**/*.js')
.map(changed(function (src) {
return src
.map(plugin1())
.map(plugin2())
// ... any plugins that can work on individual files
}))
.map(aster.dest('dist'))
.subscribe(aster.runner);
Type: Function
Part of build pipeline that can work on individual files (it will be called on every bunch of changed files and results will be cached for future calls).