diff options
author | eric thul <thul.eric@gmail.com> | 2015-12-29 08:24:06 -0500 |
---|---|---|
committer | eric thul <thul.eric@gmail.com> | 2015-12-29 08:24:06 -0500 |
commit | c01553307e6fcd0abada0b9b2f9ca8d6bb82b863 (patch) | |
tree | f8ad39dc0d21ae4add8f2a3877edf24294d2910f /example/webpack.config.js | |
parent | c9ffb38360a93d51f047a184ae13462cb90edb71 (diff) | |
download | purs-loader-c01553307e6fcd0abada0b9b2f9ca8d6bb82b863.tar.gz purs-loader-c01553307e6fcd0abada0b9b2f9ca8d6bb82b863.tar.zst purs-loader-c01553307e6fcd0abada0b9b2f9ca8d6bb82b863.zip |
Updating example for .purs extension
Showing usage of specifying .purs and not specifying an extension for
require statements.
Diffstat (limited to 'example/webpack.config.js')
-rw-r--r-- | example/webpack.config.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/example/webpack.config.js b/example/webpack.config.js index 7f468c8..602de84 100644 --- a/example/webpack.config.js +++ b/example/webpack.config.js | |||
@@ -20,7 +20,7 @@ var config | |||
20 | , module: { loaders: [ { test: /\.purs$/ | 20 | , module: { loaders: [ { test: /\.purs$/ |
21 | , loader: 'purs-loader' | 21 | , loader: 'purs-loader' |
22 | } ] } | 22 | } ] } |
23 | , resolve: { modulesDirectories: modulesDirectories } | 23 | , resolve: { modulesDirectories: modulesDirectories, extensions: [ '', '.js', '.purs'] } |
24 | , plugins: [ new PurescriptWebpackPlugin({src: src, ffi: ffi}) ] | 24 | , plugins: [ new PurescriptWebpackPlugin({src: src, ffi: ffi}) ] |
25 | } | 25 | } |
26 | ; | 26 | ; |