scalajsbundler.sbtplugin.ScalaJSBundlerPlugin

autoImport

object autoImport

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. autoImport
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. val enableReloadWorkflow: SettingKey[Boolean]

    whether to enable the “reload workflow” for webpack in fastOptJS.

    whether to enable the “reload workflow” for webpack in fastOptJS.

    When enabled, dependencies are pre-bundled so that the output of fastOptJS can directly be executed by a web browser without being further processed by a bundling system. This reduces the delays when live-reloading the application on source modifications. Defaults to true.

    Note that the “reload workflow” does not use the custom webpack configuration file, if any.

  9. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  18. val npmDependencies: SettingKey[Seq[(String, String)]]

    List of the NPM packages (name and version) your application depends on.

    List of the NPM packages (name and version) your application depends on. You can use [semver](https://docs.npmjs.com/misc/semver) versions:

    npmDependencies in Compile += "uuid" -> "~3.0.0"

    Note that this key must be scoped by a Configuration (either Compile or Test).

  19. val npmDevDependencies: SettingKey[Seq[(String, String)]]

  20. val npmResolutions: SettingKey[Map[String, String]]

    Map of NPM packages (name -> version) to use in case transitive NPM dependencies refer to a same package but with different version numbers.

    Map of NPM packages (name -> version) to use in case transitive NPM dependencies refer to a same package but with different version numbers. In such a case, this setting defines which version should be used for the conflicting package. Example:

    npmResolutions in Compile := Map("react" -> "15.4.1")

    If several Scala.js projects depend on different versions of react, the version 15.4.1 will be picked. But if all the projects depend on the same version of react, the version given in npmResolutions will be ignored.

    Note that this key must be scoped by a Configuration (either Compile or Test).

  21. val npmUpdate: TaskKey[File]

    Fetches NPM dependencies.

    Fetches NPM dependencies. Returns the directory in which the npm install command has been run.

    The plugin uses different directories according to the configuration (Compile or Test). Thus, this setting is scoped by a Configuration.

    Typically, if you want to define a task that uses the downloaded NPM packages you should specify the Configuration you are interested in:

    myCustomTask := {
    val npmDirectory = (npmUpdate in Compile).value
    doSomething(npmDirectory / "node_modules" / "some-package")
    }

    The task returns the directory in which the dependencies have been fetched (the directory that contains the node_modules directory).

  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  23. def toString(): String

    Definition Classes
    AnyRef → Any
  24. val useYarn: SettingKey[Boolean]

    Whether to use Yarn to fetch dependencies instead of npm.

    Whether to use Yarn to fetch dependencies instead of npm. Yarn has a caching mechanism that makes the process faster.

    If set to true, it requires the yarn command to be available in the host platform.

    Defaults to false.

  25. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. val webpack: TaskKey[Seq[File]]

    Bundles the output of a Scala.

    Bundles the output of a Scala.js stage.

    This task must be scoped by a Scala.js stage (either fastOptJS or fullOptJS) and a Configuration (either Compile or Test).

    For instance, to bundle the output of fastOptJS, run the following task from the sbt shell:

    fastOptJS::webpack

    Or, in an sbt build definition:

    webpack in (Compile, fastOptJS)

    Note that to scope the task to a different project than the “current” sbt project, you have to write the following:

    webpack in (projectRef, Compile, fastOptJS in projectRef)

    The task returns the produced bundles.

  29. val webpackConfigFile: SettingKey[Option[File]]

    configuration file to use with webpack.

    configuration file to use with webpack. By default, the plugin generates a configuration file, but you can supply your own file via this setting. Example of use:

    webpackConfigFile in fullOptJS := Some(baseDirectory.value / "my.prod.webpack.config.js")

    You can find more insights on how to write a custom configuration file in the cookbook.

  30. val webpackEmitSourceMaps: SettingKey[Boolean]

    whether to enable (or not) source-map in a given configuration (Compile or Test) and stage (fastOptJS or fullOptJS).

    whether to enable (or not) source-map in a given configuration (Compile or Test) and stage (fastOptJS or fullOptJS). Example of use:

    webpackEmitSourceMaps in (Compile, fullOptJS) := false

    Note that, by default, this setting takes the same value as the Scala.js’ emitSourceMaps setting, so, to globally disable source maps you can just configure the emitSourceMaps setting:

    emitSourceMaps := false
  31. val webpackEntries: TaskKey[Seq[(String, File)]]

    List of entry bundles to generate.

    List of entry bundles to generate. By default it generates just one bundle for your main class.

Inherited from AnyRef

Inherited from Any

Settings

Tasks

Ungrouped