object Webpack
- Source
- Webpack.scala
- Alphabetic
- By Inheritance
- Webpack
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- sealed trait WebpackMode extends AnyRef
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
bundle(emitSourceMaps: Boolean, generatedWebpackConfigFile: WebpackConfig, customWebpackConfigFile: Option[sbt.File], webpackResources: Seq[sbt.File], entry: Application, targetDir: sbt.File, extraArgs: Seq[String], nodeArgs: Seq[String], mode: WebpackMode, devServerPort: Int, log: sbt.Logger): ApplicationBundle
Run webpack to bundle the application.
Run webpack to bundle the application.
- emitSourceMaps
Whether or not source maps are enabled
- generatedWebpackConfigFile
Webpack config file generated by scalajs-bundler
- customWebpackConfigFile
User supplied config file
- webpackResources
Additional resources to be copied to the working folder
- entry
Scala.js application to bundle
- targetDir
Target directory (and working directory for Nodejs)
- extraArgs
Extra arguments passed to webpack
- mode
Mode for webpack 5
- devServerPort
Port used by webpack-dev-server
- log
Logger
- returns
The generated bundles
-
def
bundleLibraries(emitSourceMaps: Boolean, generatedWebpackConfigFile: WebpackConfig, customWebpackConfigFile: Option[sbt.File], webpackResources: Seq[sbt.File], entryPointFile: EntryPoint, libraryModuleName: String, extraArgs: Seq[String], nodeArgs: Seq[String], mode: WebpackMode, devServerPort: Int, log: sbt.Logger): Library
Run webpack to bundle the application.
Run webpack to bundle the application.
- emitSourceMaps
Are source maps enabled?
- generatedWebpackConfigFile
Webpack config file generated by scalajs-bundler
- customWebpackConfigFile
User supplied config file
- webpackResources
Additional webpack resources to include in the working directory
- entryPointFile
The entrypoint file to bundle dependencies for
- libraryModuleName
The library module name to assign the webpack bundle to
- extraArgs
Extra arguments passed to webpack
- mode
Mode for webpack 5
- log
Logger
- returns
The generated bundle
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
def
copyCustomWebpackConfigFiles(targetDir: sbt.File, webpackResources: Seq[sbt.File])(customConfigFile: sbt.File): sbt.File
Copies the custom webpack configuration file and the webpackResources to the target dir
Copies the custom webpack configuration file and the webpackResources to the target dir
- targetDir
target directory
- webpackResources
Resources to copy
- customConfigFile
User supplied config file
- returns
The copied config file.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
run(nodeArgs: String*)(args: String*)(workingDir: sbt.File, log: sbt.Logger): Option[WebpackStats]
Runs the webpack command.
Runs the webpack command.
- nodeArgs
node.js cli flags
- args
Arguments to pass to the webpack command
- workingDir
Working directory in which the Nodejs will be run (where there is the
node_modules
subdirectory)- log
Logger
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
writeConfigFile(emitSourceMaps: Boolean, entry: WebpackInput, webpackConfigFile: WebpackConfig, libraryBundleName: Option[String], mode: WebpackMode, devServerPort: Int, log: sbt.Logger): Unit
Writes the webpack configuration file.
Writes the webpack configuration file. The output file is designed to be minimal, and to be extended, however, the
entry
andoutput
keys must be preserved in order for the bundler to work as expected.- emitSourceMaps
Whether source maps is enabled at all
- entry
The input entrypoint file to process via webpack
- webpackConfigFile
webpack configuration file to write to
- libraryBundleName
If defined, generate a library bundle named
libraryBundleName
- log
Logger
- object DevelopmentMode extends WebpackMode with Product with Serializable
- object ProductionMode extends WebpackMode with Product with Serializable
- object WebpackMode
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated