aboutsummaryrefslogtreecommitdiffhomepage
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md14
1 files changed, 11 insertions, 3 deletions
diff --git a/README.md b/README.md
index cc4373e..28c2783 100644
--- a/README.md
+++ b/README.md
@@ -62,7 +62,8 @@ const loaderConfig = {
62 pscIdeServerArgs: {}, // for example, to change the port {port: 4088} 62 pscIdeServerArgs: {}, // for example, to change the port {port: 4088}
63 pscIdeRebuildArgs: {} // for example, for sourcemaps {codegen: ['js', 'sourcemaps']} 63 pscIdeRebuildArgs: {} // for example, for sourcemaps {codegen: ['js', 'sourcemaps']}
64 pscIdeColors: false, // defaults to true if psc === 'psa' 64 pscIdeColors: false, // defaults to true if psc === 'psa'
65 pscPackage: false, 65 pscPackage: false, // include dependencies from psc-package
66 spago: false, // include dependencies from spago
66 bundleOutput: 'output/bundle.js', 67 bundleOutput: 'output/bundle.js',
67 bundleNamespace: 'PS', 68 bundleNamespace: 'PS',
68 bundle: false, 69 bundle: false,
@@ -71,10 +72,12 @@ const loaderConfig = {
71 output: 'output', 72 output: 'output',
72 src: [ 73 src: [
73 path.join('src', '**', '*.purs'), 74 path.join('src', '**', '*.purs'),
74 // if pscPackage = false
75 path.join('bower_components', 'purescript-*', 'src', '**', '*.purs')
76 // if pscPackage = true 75 // if pscPackage = true
77 // source paths reported by `psc-package sources` 76 // source paths reported by `psc-package sources`
77 // if spago = true
78 // source paths reported by `spago sources`
79 // if pscPackage = false and spago = false
80 path.join('bower_components', 'purescript-*', 'src', '**', '*.purs')
78 ] 81 ]
79} 82}
80``` 83```
@@ -91,6 +94,11 @@ if there is no server running this loader will start one for you.
91Set `pscPackage` query parameter to `true` to enable `psc-package` support. The `psc-package`-supplied source paths 94Set `pscPackage` query parameter to `true` to enable `psc-package` support. The `psc-package`-supplied source paths
92will be appended to `src` parameter. 95will be appended to `src` parameter.
93 96
97### `spago` support (experimental)
98
99Set `spago` query parameter to `true` to enable `spago` support. The `spago`-supplied source paths
100will be appended to `src` parameter.
101
94### Troubleshooting 102### Troubleshooting
95 103
96#### Slower webpack startup after enabling psc-ide support? 104#### Slower webpack startup after enabling psc-ide support?