scalajs-loader

0.0.1 • Public • Published

Scala.js Webpack loader

npm

Usage

This is a simple Webpack loader that shells out to SBT to build a Scala.js project.

To use it, first install the package:

$ npm install --save scalajs-loader

then configure the loader in your Webpack config:

module.exports = {
  // ...
  module: {
    rules: [
      { test: /\.scala$/, loader: 'scalajs-loader' },
      // ...
    ]
  }
}

Make sure you have the sbt binary somewhere in your PATH.

Example

Check out the example directory for a simple Hello World example.

/scalajs-loader/

    Package Sidebar

    Install

    npm i scalajs-loader

    Weekly Downloads

    0

    Version

    0.0.1

    License

    MIT

    Last publish

    Collaborators

    • mrdziuban