diff options
author | eric thul <thul.eric@gmail.com> | 2015-01-17 16:28:34 -0500 |
---|---|---|
committer | eric thul <thul.eric@gmail.com> | 2015-01-17 16:28:34 -0500 |
commit | 9f398b64af9025e146362a6cf7a2817255700337 (patch) | |
tree | 254850b971c699f0547b70b3c5e5137c29555e9f /README.md | |
parent | a92aa714f0a5436d9f06f82b3cad4df8129e4064 (diff) | |
download | purs-loader-9f398b64af9025e146362a6cf7a2817255700337.tar.gz purs-loader-9f398b64af9025e146362a6cf7a2817255700337.tar.zst purs-loader-9f398b64af9025e146362a6cf7a2817255700337.zip |
Updating README
Diffstat (limited to 'README.md')
-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 | ``` | ||