Skip to content

fazibear/elixirscript-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

elixirscript webpack loader

Requirements

  • Elixirscript 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

Sponsor this project

 

Packages

No packages published