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 /README.md | |
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 'README.md')
-rw-r--r-- | README.md | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -44,10 +44,6 @@ Sets `--output=<string>` the specifies the output directory, `output` by default | |||
44 | 44 | ||
45 | Toggles `--no-prefix` that does not include the comment header. | 45 | Toggles `--no-prefix` that does not include the comment header. |
46 | 46 | ||
47 | ###### `requirePath` (String) | ||
48 | |||
49 | Sets `--require-path=<string>` that specifies the path prefix to use for `require()` calls in the generated JavaScript. | ||
50 | |||
51 | ###### `ffi` (String Array) | 47 | ###### `ffi` (String Array) |
52 | 48 | ||
53 | Specifies the PureScript FFI files setting `--ffi=<string>`. Glob syntax is supported. This option is specified as `ffi[]=path`. | 49 | Specifies the PureScript FFI files setting `--ffi=<string>`. Glob syntax is supported. This option is specified as `ffi[]=path`. |
@@ -73,10 +69,7 @@ var modulesDirectories = [ | |||
73 | 'node_modules', | 69 | 'node_modules', |
74 | // The bower component for purescript-prelude is specified here to | 70 | // The bower component for purescript-prelude is specified here to |
75 | // allow JavaScript files to require the 'Prelude' module globally. | 71 | // allow JavaScript files to require the 'Prelude' module globally. |
76 | 'bower_components/purescript-prelude/src', | 72 | 'bower_components/purescript-prelude/src' |
77 | // The output directory is specified here to allow PureScript files in | ||
78 | // your source to import other PureScript modules in your source. | ||
79 | output | ||
80 | ]; | 73 | ]; |
81 | 74 | ||
82 | var config | 75 | var config |