aboutsummaryrefslogtreecommitdiffhomepage
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md34
1 files changed, 1 insertions, 33 deletions
diff --git a/README.md b/README.md
index e93e969..df92e69 100644
--- a/README.md
+++ b/README.md
@@ -14,36 +14,4 @@ npm install purs-loader --save-dev
14 14
15## Example 15## Example
16 16
17```js 17Refer to the [purescript-webpack-example](https://github.com/ethul/purescript-webpack-example) for an example.
18// webpack.config.js
19'use strict';
20
21var PurescriptWebpackPlugin = require('purescript-webpack-plugin');
22
23var src = ['bower_components/purescript-*/src/**/*.purs', 'src/**/*.purs'];
24
25var ffi = ['bower_components/purescript-*/src/**/*.js', 'src/**/*FFI.js'];
26
27var modulesDirectories = [
28 'node_modules',
29 'bower_components'
30];
31
32var config
33 = { entry: './src/entry'
34 , output: { path: __dirname
35 , pathinfo: true
36 , filename: 'bundle.js'
37 }
38 , module: { loaders: [ { test: /\.purs$/
39 , loader: 'purs-loader'
40 } ] }
41 , resolve: { modulesDirectories: modulesDirectories }
42 , plugins: [ new PurescriptWebpackPlugin({src: src, ffi: ffi}) ]
43 }
44 ;
45
46module.exports = config;
47```
48
49See the [example](https://github.com/ethul/purs-loader/tree/master/example) directory for a complete example.