diff options
-rw-r--r-- | README.md | 25 |
1 files changed, 1 insertions, 24 deletions
@@ -27,27 +27,4 @@ npm install purs-loader --save-dev | |||
27 | 27 | ||
28 | ## Example | 28 | ## Example |
29 | 29 | ||
30 | ```js | 30 | See the [example](https://github.com/ethul/purs-loader/tree/topic/bower-components/example) directory for a complete example. |
31 | var path = require('path'); | ||
32 | |||
33 | module.exports = { | ||
34 | entry: './src/test', | ||
35 | output: { | ||
36 | path: path.join(__dirname, 'dist'), | ||
37 | filename: 'app.js' | ||
38 | }, | ||
39 | module: { | ||
40 | loaders: [{ | ||
41 | test: /\.purs$/, | ||
42 | loader: 'purs-loader?no-prelude&output=output' | ||
43 | }] | ||
44 | }, | ||
45 | resolve: { | ||
46 | modulesDirectories: [ | ||
47 | 'node_modules', | ||
48 | 'web_modules', | ||
49 | 'output' | ||
50 | ] | ||
51 | } | ||
52 | }; | ||
53 | ``` | ||