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
21 var PurescriptWebpackPlugin = require('purescript-webpack-plugin');
23 var src = ['bower_components/purescript-*/src/**/*.purs', 'src/**/*.purs'];
25 var ffi = ['bower_components/purescript-*/src/**/*.js', 'src/**/*FFI.js'];
27 var modulesDirectories = [
33 = { entry: './src/entry'
34 , output: { path: __dirname
36 , filename: 'bundle.js'
38 , module: { loaders: [ { test: /\.purs$/
39 , loader: 'purs-loader'
41 , resolve: { modulesDirectories: modulesDirectories }
42 , plugins: [ new PurescriptWebpackPlugin({src: src, ffi: ffi}) ]
46 module.exports = config;
49 See the [example](https://github.com/ethul/purs-loader/tree/master/example) directory for a complete example.