diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -47,7 +47,7 @@ Refer to the [purescript-webpack-example](https://github.com/ethul/purescript-we | |||
47 | Default options: | 47 | Default options: |
48 | 48 | ||
49 | ```javascript | 49 | ```javascript |
50 | { | 50 | const loaderConfig = { |
51 | psc: 'psc', | 51 | psc: 'psc', |
52 | pscArgs: {}, | 52 | pscArgs: {}, |
53 | pscBundle: 'psc-bundle', | 53 | pscBundle: 'psc-bundle', |
@@ -56,6 +56,7 @@ Default options: | |||
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 | pscIdeServerArgs: {}, // for example, to change the port { port: 4088 } |
58 | pscIdeColors: false, // defaults to true if psc === 'psa' | 58 | pscIdeColors: false, // defaults to true if psc === 'psa' |
59 | pscPackage: false, | ||
59 | bundleOutput: 'output/bundle.js', | 60 | bundleOutput: 'output/bundle.js', |
60 | bundleNamespace: 'PS', | 61 | bundleNamespace: 'PS', |
61 | bundle: false, | 62 | bundle: false, |
@@ -63,7 +64,11 @@ Default options: | |||
63 | output: 'output', | 64 | output: 'output', |
64 | src: [ | 65 | src: [ |
65 | path.join('src', '**', '*.purs'), | 66 | path.join('src', '**', '*.purs'), |
67 | // if pscPackage = false | ||
66 | path.join('bower_components', 'purescript-*', 'src', '**', '*.purs') | 68 | path.join('bower_components', 'purescript-*', 'src', '**', '*.purs') |
69 | /* | ||
70 | * OR source paths reported by `psc-package sources`, if pscPackage = true | ||
71 | */ | ||
67 | ] | 72 | ] |
68 | } | 73 | } |
69 | ``` | 74 | ``` |
@@ -84,6 +89,7 @@ it might result in a slower initial webpack startup time (rebuilds are not | |||
84 | affected). To override the default behaviour, add: | 89 | affected). To override the default behaviour, add: |
85 | `pscIdeServerArgs: { "_": ['your/*globs/here'] }` to the loader config | 90 | `pscIdeServerArgs: { "_": ['your/*globs/here'] }` to the loader config |
86 | 91 | ||
92 | ### `psc-package` support (experimental) | ||
87 | 93 | ||
88 | 94 | Set `pscPackage` query parameter to `true` to enable `psc-package` support. The `psc-package`-supplied source paths | |
89 | 95 | will be appended to `src` parameter. | |