Skip to content

Latest commit

 

History

History
46 lines (31 loc) · 1.16 KB

File metadata and controls

46 lines (31 loc) · 1.16 KB

sbt-rollup

Build Status Codacy Badge

This plugin provides support for running rollup in a sbt-web workflow.

Quickstart

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: [ ]
};

Settings

Option Description
entry Entry point for application bundle.
output Filename for the output file.
config Location of the rollup configuration file.