taskr-rollup
v1.0.0
Published
Rollup plugin for Taskr
Downloads
607
Readme
taskr-rollup
Install
This plugin requires Taskr and Rollup.
$ yarn add -D taskr rollup taskr-rollup
or
$ npm install taskr rollup taskr-rollup
Usage
exports.bundle = function*(task) {
yield task
// bundle entry file
.source("src/entry.js")
.rollup({
// configuration options, https://rollupjs.org/#configuration-files
plugins: [require("rollup-plugin-babel")()],
output: {
file: "bundle.js",
format: "es"
}
})
.target("dist");
};
Configuration
All Rollup options are supported, with the exception of input
.