This plugin enables ScalaJSPlugin and sets the scalaJSModuleKind to CommonJSModule. It also makes it
possible to define dependencies to NPM packages and provides tasks to fetch them or to bundle the application
with its dependencies.
Tasks and Settings
The autoImport member documents the keys provided by this plugin. Besides these keys, the
following existing keys also control the plugin:
version in webpack
Version of webpack to use. Example:
version in webpack := "3.5.5"
version in installJsdom
Version of jsdom to use.
version in startWebpackDevServer
Version of webpack-dev-server to use.
version in startWebpackDevServer := "2.11.1"
crossTarget in npmUpdate
The directory in which NPM dependencies will be fetched, and where all the .js files
will be generated. The directory is different according to the current Configuration
(either Compile or Test).
Defaults to crossTarget.value / "scalajs-bundler" / "main" for Compile and
crossTarget.value / "scalajs-bundler" / "test" for Test.
Linear Supertypes
AutoPlugin, PluginsFunctions, Basic, Plugins, AnyRef, Any
This plugin enables
ScalaJSPluginand sets thescalaJSModuleKindtoCommonJSModule. It also makes it possible to define dependencies to NPM packages and provides tasks to fetch them or to bundle the application with its dependencies.Tasks and Settings
The autoImport member documents the keys provided by this plugin. Besides these keys, the following existing keys also control the plugin:
version in webpackVersion of webpack to use. Example:
version in webpack := "3.5.5"version in installJsdomVersion of jsdom to use.
version in startWebpackDevServerVersion of webpack-dev-server to use.
version in startWebpackDevServer := "2.11.1"crossTarget in npmUpdateThe directory in which NPM dependencies will be fetched, and where all the .js files will be generated. The directory is different according to the current
Configuration(eitherCompileorTest).Defaults to
crossTarget.value / "scalajs-bundler" / "main"forCompileandcrossTarget.value / "scalajs-bundler" / "test"forTest.