3 > [PureScript](http://www.purescript.org) loader for [webpack](http://webpack.github.io)
7 Install with [npm](https://npmjs.org/package/purs-loader).
9 This loader works in conjunction with the [PureScript webpack plugin](https://npmjs.org/package/purescript-webpack-plugin). Ensure the plugin is installed and configured accordingly.
12 npm install purs-loader --save-dev
17 ###### `bundleOutput` (String)
19 Relative path to the bundled JavaScript file generated by the `PurescriptWebpackPlugin`. The default value is `output/bundle.js`.
27 var PurescriptWebpackPlugin = require('purescript-webpack-plugin');
29 var src = ['bower_components/purescript-*/src/**/*.purs', 'src/**/*.purs'];
31 var ffi = ['bower_components/purescript-*/src/**/*.js', 'src/**/*FFI.js'];
33 var modulesDirectories = [
39 = { entry: './src/entry'
40 , output: { path: __dirname
42 , filename: 'bundle.js'
44 , module: { loaders: [ { test: /\.purs$/
45 , loader: 'purs-loader'
47 , resolve: { modulesDirectories: modulesDirectories }
48 , plugins: [ new PurescriptWebpackPlugin({src: src, ffi: ffi}) ]
52 module.exports = config;
55 See the [example](https://github.com/ethul/purs-loader/tree/master/example) directory for a complete example.