diff options
author | eric thul <thul.eric@gmail.com> | 2016-03-13 10:06:11 -0400 |
---|---|---|
committer | eric thul <thul.eric@gmail.com> | 2016-03-13 10:06:11 -0400 |
commit | 1a7a07b7a4fa93a55a600ca9d466020f3e11ab5a (patch) | |
tree | 9af0a5120593adeb47229d6a564fee86ab9f0856 /example/webpack.config.js | |
parent | 0f0403a8359f316ece009442f2b3803e897cc9f1 (diff) | |
download | purs-loader-1a7a07b7a4fa93a55a600ca9d466020f3e11ab5a.tar.gz purs-loader-1a7a07b7a4fa93a55a600ca9d466020f3e11ab5a.tar.zst purs-loader-1a7a07b7a4fa93a55a600ca9d466020f3e11ab5a.zip |
Extracting out the example
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; | ||