aboutsummaryrefslogtreecommitdiffhomepage
path: root/README.md
diff options
context:
space:
mode:
authoreric <thul.eric@gmail.com>2017-01-09 15:48:12 -0500
committerGitHub <noreply@github.com>2017-01-09 15:48:12 -0500
commit941d65aeea0db19b86dc3a80fc58c1ce340965cf (patch)
tree0cf5d2972456f083ad887c9891b365dbd08d89b2 /README.md
parent5f4d6751efdb215207e7ee87b424b14c4dc041d1 (diff)
parent4343e0eb79b0324d7f4c4eed081780faeaa836a0 (diff)
downloadpurs-loader-941d65aeea0db19b86dc3a80fc58c1ce340965cf.tar.gz
purs-loader-941d65aeea0db19b86dc3a80fc58c1ce340965cf.tar.zst
purs-loader-941d65aeea0db19b86dc3a80fc58c1ce340965cf.zip
Merge pull request #80 from kozak/feature/psc-ide-server-args
Add psc-ide-server arguments and pass src to psc-ide-server
Diffstat (limited to 'README.md')
-rw-r--r--README.md17
1 files changed, 16 insertions, 1 deletions
diff --git a/README.md b/README.md
index 9d6166b..292ab85 100644
--- a/README.md
+++ b/README.md
@@ -54,6 +54,7 @@ Default options:
54 pscBundleArgs: {}, 54 pscBundleArgs: {},
55 pscIde: false, // instant rebuilds using psc-ide-server (experimental) 55 pscIde: false, // instant rebuilds using psc-ide-server (experimental)
56 pscIdeArgs: {}, // for example, to use different psc-ide-server port: {port: 4088} 56 pscIdeArgs: {}, // for example, to use different psc-ide-server port: {port: 4088}
57 pscIdeServerArgs: {}, // for example, to change the port { port: 4088 }
57 pscIdeColors: false, // defaults to true if psc === 'psa' 58 pscIdeColors: false, // defaults to true if psc === 'psa'
58 bundleOutput: 'output/bundle.js', 59 bundleOutput: 'output/bundle.js',
59 bundleNamespace: 'PS', 60 bundleNamespace: 'PS',
@@ -71,4 +72,18 @@ Default options:
71 72
72Experimental support for instant rebuilds using `psc-ide-server` can be enabled 73Experimental support for instant rebuilds using `psc-ide-server` can be enabled
73via the `pscIde: true` option. 74via the `pscIde: true` option.
74You can use an already running `psc-ide-server` instance by specifying the port in `pscIdeArgs`. 75You can use an already running `psc-ide-server` instance by specifying the port in `pscIdeArgs`,
76if there is no server running this loader will start one for you.
77
78
79#### Slower webpack startup after using purs-loader ?
80
81By default, the psc-ide-server will be passed the globs from query.src, this is
82helpful for other tools using psc-ide-server (for example IDE plugins), however
83it might result in a slower initial webpack startup time (rebuilds are not
84affected). To override the default behaviour, add:
85`pscIdeServerArgs: { "_": ['your/*globs/here'] }` to the loader config
86
87
88
89