aboutsummaryrefslogtreecommitdiffhomepage
path: root/README.md
diff options
context:
space:
mode:
authorNathan Faubion <nathan@n-son.com>2015-11-02 14:04:58 -0600
committerNathan Faubion <nathan@n-son.com>2015-11-02 14:16:21 -0600
commit2b620717603a6a2ba4d93ee1ca7334dc31500acf (patch)
tree7548d0a34052169d853ecd5959eb6f1663c129d1 /README.md
parent8a0ac07ec2c568b8e9bd06cfd0429c6d6aa836e5 (diff)
downloadpurs-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.md9
1 files changed, 1 insertions, 8 deletions
diff --git a/README.md b/README.md
index a45573f..bef16af 100644
--- a/README.md
+++ b/README.md
@@ -44,10 +44,6 @@ Sets `--output=<string>` the specifies the output directory, `output` by default
44 44
45Toggles `--no-prefix` that does not include the comment header. 45Toggles `--no-prefix` that does not include the comment header.
46 46
47###### `requirePath` (String)
48
49Sets `--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
53Specifies the PureScript FFI files setting `--ffi=<string>`. Glob syntax is supported. This option is specified as `ffi[]=path`. 49Specifies 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
82var config 75var config