diff options
author | eric <thul.eric@gmail.com> | 2016-03-13 10:07:58 -0400 |
---|---|---|
committer | eric <thul.eric@gmail.com> | 2016-03-13 10:07:58 -0400 |
commit | 7a70d4eb331b60186e3800d15efd9115462c6a80 (patch) | |
tree | 9af0a5120593adeb47229d6a564fee86ab9f0856 /example/webpack.config.js | |
parent | cfd5d2afba83a0082a3be638a05d1768ee73335e (diff) | |
parent | 1a7a07b7a4fa93a55a600ca9d466020f3e11ab5a (diff) | |
download | purs-loader-7a70d4eb331b60186e3800d15efd9115462c6a80.tar.gz purs-loader-7a70d4eb331b60186e3800d15efd9115462c6a80.tar.zst purs-loader-7a70d4eb331b60186e3800d15efd9115462c6a80.zip |
Merge pull request #44 from ethul/topic/output-only-once
Topic/output only once
Diffstat (limited to 'example/webpack.config.js')
-rw-r--r-- | example/webpack.config.js | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/example/webpack.config.js b/example/webpack.config.js deleted file mode 100644 index 602de84..0000000 --- a/example/webpack.config.js +++ /dev/null | |||
@@ -1,28 +0,0 @@ | |||
1 | 'use strict'; | ||
2 | |||
3 | var PurescriptWebpackPlugin = require('purescript-webpack-plugin'); | ||
4 | |||
5 | var src = ['bower_components/purescript-*/src/**/*.purs', 'src/**/*.purs']; | ||
6 | |||
7 | var ffi = ['bower_components/purescript-*/src/**/*.js', 'src/**/*FFI.js']; | ||
8 | |||
9 | var modulesDirectories = [ | ||
10 | 'node_modules', | ||
11 | 'bower_components' | ||
12 | ]; | ||
13 | |||
14 | var config | ||
15 | = { entry: './src/entry' | ||
16 | , output: { path: __dirname | ||
17 | , pathinfo: true | ||
18 | , filename: 'bundle.js' | ||
19 | } | ||
20 | , module: { loaders: [ { test: /\.purs$/ | ||
21 | , loader: 'purs-loader' | ||
22 | } ] } | ||
23 | , resolve: { modulesDirectories: modulesDirectories, extensions: [ '', '.js', '.purs'] } | ||
24 | , plugins: [ new PurescriptWebpackPlugin({src: src, ffi: ffi}) ] | ||
25 | } | ||
26 | ; | ||
27 | |||
28 | module.exports = config; | ||