3 > [PureScript](http://www.purescript.org) loader for [webpack](http://webpack.github.io)
5 - Supports hot-reloading and rebuilding of single source files
6 - Dead code elimination using the `bundle` option
7 - Colorized build output using `purescript-psa` and the `psc: "psa"` option
11 Install with [npm](https://npmjs.org/package/purs-loader).
14 npm install purs-loader --save-dev
16 npm install purs-loader@next --save-dev
18 npm install purs-loader@purescript-0.8 --save-dev
20 npm install purs-loader@purescript-0.9 --save-dev
22 npm install purs-loader@purescript-0.10 --save-dev
28 const webpackConfig = {
34 loader: 'purs-loader',
35 exclude: /node_modules/,
38 src: ['bower_components/purescript-*/src/**/*.purs', 'src/**/*.purs']
47 Refer to the [purescript-webpack-example](https://github.com/ethul/purescript-webpack-example) for a more detailed example.
57 pscBundle: 'psc-bundle',
59 pscIde: false, // instant rebuilds using psc-ide-server (experimental)
60 pscIdeColors: false, // defaults to true if psc === 'psa'
61 bundleOutput: 'output/bundle.js',
62 bundleNamespace: 'PS',
67 path.join('src', '**', '*.purs'),
68 path.join('bower_components', 'purescript-*', 'src', '**', '*.purs')
73 ### Instant rebuilds (experimental)
75 Experimental support for instant rebuilds using `psc-ide-server` can be enabled
76 via the `pscIde: true` option.