This is a preset rollup config for flow projects, which uses preconfigured plugins useful in that setup.
npm install --save-dev rollup.config.flow
Then in your own project create rollup.config.js
file that just exports the default
import config from "rollup.config.flow"
export default config()
Then you can create UMD style bundles from src
files to dist
by runing following:
rollup -c --files index
You can also create multiple bundles as follows:
rollup -c --files index,other,nested/module
You can further customize your config by passing additional options to the config:
import config from "rollup.config.flow"
export default config({
name: "mylibname", // file name used if not provided
alias: { stuff: "@gozala/stuff" },
css: true // importing `style.css` will inject them into head element.
})