Skip to content
master
Go to file
Code
This branch is 3 commits behind fazibear:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

README.md

elixirscript webpack loader

Requirements

  • Erlang installed

Usage

Documentation: Using loaders

Recommended configuration

{
  module: {
    rules: [
      {
        test: /\.ex$/,
        exclude: /(node_modules|bower_components)/,
        loader: "elixirscript-loader",
        options: {
          inputFolder: "./app/elixirscript",
          jsModules: [
            ["React", "react"], 
            ["ReactDOM", "react-dom"]
          ]
        }
      }
    ]
  }
}

Options

  • inputFolder: (required) The path to your elixirscript files
  • jsModules: (optional) A list of JavaScript modules used

Code

import Elixir from "path/to/elixirscript/entry/path/app.ex";
Elixir.start(Elixir.App, []);

License

MIT (http://www.opensource.org/licenses/mit-license.php)

About

No description, website, or topics provided.

Resources

License

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.