diff options
author | eric thul <thul.eric@gmail.com> | 2015-07-18 17:07:38 -0400 |
---|---|---|
committer | eric thul <thul.eric@gmail.com> | 2015-07-18 17:07:38 -0400 |
commit | 3610dff1b8308a810d827f0595832b326deff37b (patch) | |
tree | a4858f5e16e3df01aee249ad53b5b76f90fb97de /example/webpack.config.js | |
parent | 418c9429609c6d80ddaf7df41e0ee64192e2ec7b (diff) | |
download | purs-loader-3610dff1b8308a810d827f0595832b326deff37b.tar.gz purs-loader-3610dff1b8308a810d827f0595832b326deff37b.tar.zst purs-loader-3610dff1b8308a810d827f0595832b326deff37b.zip |
Add FFI JavaScript as a webpack dependency
Resolves #18
Diffstat (limited to 'example/webpack.config.js')
-rw-r--r-- | example/webpack.config.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/example/webpack.config.js b/example/webpack.config.js index 9294904..1a0eef6 100644 --- a/example/webpack.config.js +++ b/example/webpack.config.js | |||
@@ -2,7 +2,7 @@ var path = require('path'); | |||
2 | 2 | ||
3 | var srcs = ['src[]=bower_components/purescript-*/src/**/*.purs', 'src[]=src/**/*.purs']; | 3 | var srcs = ['src[]=bower_components/purescript-*/src/**/*.purs', 'src[]=src/**/*.purs']; |
4 | 4 | ||
5 | var ffis = ['ffi[]=bower_components/purescript-*/src/**/*.js']; | 5 | var ffis = ['ffi[]=bower_components/purescript-*/src/**/*.js', 'ffi[]=src/**/*FFI.js']; |
6 | 6 | ||
7 | var output = 'output'; | 7 | var output = 'output'; |
8 | 8 | ||
@@ -22,7 +22,7 @@ var config | |||
22 | , loader: 'purs-loader?output=' + output + '&' + srcs.concat(ffis).join('&') | 22 | , loader: 'purs-loader?output=' + output + '&' + srcs.concat(ffis).join('&') |
23 | } ] } | 23 | } ] } |
24 | , resolve: { modulesDirectories: modulesDirectories | 24 | , resolve: { modulesDirectories: modulesDirectories |
25 | , extensions: ['', '.js', '.purs'] | 25 | , extensions: ['', '.js'] |
26 | } | 26 | } |
27 | , resolveLoader: { root: path.join(__dirname, 'node_modules') } | 27 | , resolveLoader: { root: path.join(__dirname, 'node_modules') } |
28 | } | 28 | } |