blob: d243381aa0b11dbe5131d78433920299f242bb76 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# purs-loader
> [PureScript](http://www.purescript.org) loader for [webpack](http://webpack.github.io)
## Install
Install with [npm](https://npmjs.org/package/purs-loader)
```
npm install purs-loader --save-dev
```
## Options
###### `noPrelude` (Boolean)
Toggles `--no-prelude` that omits the Prelude.
###### `noTco` (Boolean)
Toggles `--no-tco` that disables tail-call optimizations.
###### `noMagicDo` (Boolean)
Toggles `--no-magic-do` that disables optimizations overloading the do keyword generating efficient code for the `Eff` monad.
###### `noOpts` (Boolean)
Toggles `--no-opts` that skips the optimization phase.
###### `verboseErrors` (Boolean)
Toggles `--verbose-errors` that displays verbose error messages.
###### `comments` (Boolean)
Toggles `--comments` that includes comments in generated code.
###### `output` (String)
Sets `--output=<string>` the specifies the output directory, `output` by default.
###### `noPrefix` (Boolean)
Toggles `--no-prefix` that does not include the comment header.
###### `src` (String Array)
Specifies PureScript source paths to be globbed for `.purs` files. By default, `bower_components` is search. Additional paths may be specified using this option. This option is specified as `src[]=path`.
## Example
See the [example](https://github.com/ethul/purs-loader/tree/master/example) directory for a complete example.
|