This plugin provides support for running rollup in a sbt-web workflow.
Enable the plugin in your plugins.sbt file:
addSbtPlugin("com.swanaudio.sbt" % "sbt-rollup" % "1.0.0")Define the entry point of your javascript module in your projects build.sbt:
entry in rollup := (sourceDirectory in Assets).value / "javascripts" / "main.js"Add a base rollup.config.js to the project root:
export default {
format: 'umd',
plugins: [ ]
};| Option | Description |
|---|---|
| entry | Entry point for application bundle. |
| output | Filename for the output file. |
| config | Location of the rollup configuration file. |