- Elixirscript installed
{
module: {
rules: [
{
test: /\.ex$/,
exclude: /(node_modules|bower_components)/,
loader: "elixirscript-loader",
options: {
inputFolder: "./app/elixirscript",
jsModules: [
["React", "react"],
["ReactDOM", "react-dom"]
]
}
}
]
}
}
inputFolder
: (required) The path to your elixirscript filesjsModules
: (optional) A list of JavaScript modules used
import Elixir from "path/to/elixirscript/entry/path/app.ex";
Elixir.start(Elixir.App, []);