0.1.0 • Published 7 years ago

elixirscript-loader v0.1.0

Weekly downloads
1
License
-
Repository
github
Last release
7 years ago

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)

0.1.0

7 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago