Skip to content

elixirscript/elixirscript-loader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%