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@next --save-dev
20 const webpackConfig = {
26 loader: 'purs-loader',
27 exclude: /node_modules/,
30 src: ['bower_components/purescript-*/src/**/*.purs', 'src/**/*.purs'],
31 ffi: ['bower_components/purescript-*/src/**/*.js', 'src/**/*.js'],
40 Refer to the [purescript-webpack-example](https://github.com/ethul/purescript-webpack-example) for a more detailed example.
50 pscBundle: 'psc-bundle',
52 pscIde: false, // instant rebuilds using psc-ide-server (experimental)
53 pscIdeColors: false, // defaults to true if psc === 'psa'
54 bundleOutput: 'output/bundle.js',
55 bundleNamespace: 'PS',
60 path.join('src', '**', '*.purs'),
61 path.join('bower_components', 'purescript-*', 'src', '**', '*.purs')
64 path.join('src', '**', '*.js'),
65 path.join('bower_components', 'purescript-*', 'src', '**', '*.js')
70 ### Instant rebuilds (experimental)
72 Experimental support for instant rebuilds using `psc-ide-server` can be enabled
73 via the `pscIde: true` option.