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