diff options
author | Nathan Faubion <nathan@n-son.com> | 2015-11-02 14:04:58 -0600 |
---|---|---|
committer | Nathan Faubion <nathan@n-son.com> | 2015-11-02 14:16:21 -0600 |
commit | 2b620717603a6a2ba4d93ee1ca7334dc31500acf (patch) | |
tree | 7548d0a34052169d853ecd5959eb6f1663c129d1 /docs/PursLoader | |
parent | 8a0ac07ec2c568b8e9bd06cfd0429c6d6aa836e5 (diff) | |
download | purs-loader-2b620717603a6a2ba4d93ee1ca7334dc31500acf.tar.gz purs-loader-2b620717603a6a2ba4d93ee1ca7334dc31500acf.tar.zst purs-loader-2b620717603a6a2ba4d93ee1ca7334dc31500acf.zip |
Remove `require-path`, use relative paths for PS
Fixes #15
Removes the `require-path` option and fixes it to '../'. When generating
the temporary module for Webpack, use a relative path to the output
directory so it doesn't need to be in `modulesDirectories`.
Diffstat (limited to 'docs/PursLoader')
-rw-r--r-- | docs/PursLoader/Loader.md | 2 | ||||
-rw-r--r-- | docs/PursLoader/Options.md | 19 |
2 files changed, 19 insertions, 2 deletions
diff --git a/docs/PursLoader/Loader.md b/docs/PursLoader/Loader.md index 8e91c4a..f81c486 100644 --- a/docs/PursLoader/Loader.md +++ b/docs/PursLoader/Loader.md | |||
@@ -3,7 +3,7 @@ | |||
3 | #### `Effects` | 3 | #### `Effects` |
4 | 4 | ||
5 | ``` purescript | 5 | ``` purescript |
6 | type Effects eff = (cp :: ChildProcess, fs :: FS, glob :: Glob, loader :: Loader | eff) | 6 | type Effects eff = (cp :: ChildProcess, fs :: FS, glob :: Glob, loader :: Loader, err :: EXCEPTION | eff) |
7 | ``` | 7 | ``` |
8 | 8 | ||
9 | #### `loader` | 9 | #### `loader` |
diff --git a/docs/PursLoader/Options.md b/docs/PursLoader/Options.md index d04b721..4202475 100644 --- a/docs/PursLoader/Options.md +++ b/docs/PursLoader/Options.md | |||
@@ -1,9 +1,26 @@ | |||
1 | ## Module PursLoader.Options | 1 | ## Module PursLoader.Options |
2 | 2 | ||
3 | #### `Options` | ||
4 | |||
5 | ``` purescript | ||
6 | newtype Options | ||
7 | ``` | ||
8 | |||
9 | ##### Instances | ||
10 | ``` purescript | ||
11 | instance isForeignOptions :: IsForeign Options | ||
12 | ``` | ||
13 | |||
14 | #### `output` | ||
15 | |||
16 | ``` purescript | ||
17 | output :: Options -> String | ||
18 | ``` | ||
19 | |||
3 | #### `pscOptions` | 20 | #### `pscOptions` |
4 | 21 | ||
5 | ``` purescript | 22 | ``` purescript |
6 | pscOptions :: Foreign -> Array String | 23 | pscOptions :: Options -> Array String |
7 | ``` | 24 | ``` |
8 | 25 | ||
9 | #### `loaderSrcOption` | 26 | #### `loaderSrcOption` |