Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fazibear/elixirscript-loader
https://github.com/fazibear/elixirscript-loader
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/fazibear/elixirscript-loader
- Owner: fazibear
- License: mit
- Created: 2015-11-10T12:26:55.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-27T13:18:18.000Z (almost 8 years ago)
- Last Synced: 2024-08-08T22:34:43.921Z (5 months ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 1
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# elixirscript webpack loader
## Requirements
- Elixirscript installed
## Usage
[Documentation: Using loaders](http://webpack.github.io/docs/using-loaders.html)
### Recommended configuration
``` javascript
{
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
```js
import Elixir from "path/to/elixirscript/entry/path/app.ex";
Elixir.start(Elixir.App, []);
```## License
MIT (http://www.opensource.org/licenses/mit-license.php)