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
22 const webpackConfig = {
28 loader: 'purs-loader',
29 exclude: /node_modules/,
32 src: ['bower_components/purescript-*/src/**/*.purs', 'src/**/*.purs']
41 Refer to the [purescript-webpack-example](https://github.com/ethul/purescript-webpack-example) for a more detailed example.
51 pscBundle: 'psc-bundle',
53 pscIde: false, // instant rebuilds using psc-ide-server (experimental)
54 pscIdeColors: false, // defaults to true if psc === 'psa'
55 bundleOutput: 'output/bundle.js',
56 bundleNamespace: 'PS',
61 path.join('src', '**', '*.purs'),
62 path.join('bower_components', 'purescript-*', 'src', '**', '*.purs')
67 ### Instant rebuilds (experimental)
69 Experimental support for instant rebuilds using `psc-ide-server` can be enabled
70 via the `pscIde: true` option.