aboutsummaryrefslogtreecommitdiffhomepage
path: root/webpack.config.js
diff options
context:
space:
mode:
authoreric thul <thul.eric@gmail.com>2015-04-08 19:49:24 -0400
committereric thul <thul.eric@gmail.com>2015-04-12 11:19:22 -0400
commitc194f84cab66fa6e18b78c32f9cdf2bddf8d1e68 (patch)
tree5470b97ffc561915796f5a8a2a9541d9ebef50ae /webpack.config.js
parent9d38968bbe4bbf54e2ca836d9a1550d74d4da703 (diff)
downloadpurs-loader-c194f84cab66fa6e18b78c32f9cdf2bddf8d1e68.tar.gz
purs-loader-c194f84cab66fa6e18b78c32f9cdf2bddf8d1e68.tar.zst
purs-loader-c194f84cab66fa6e18b78c32f9cdf2bddf8d1e68.zip
Rewrite using purescript for the implementation
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js29
1 files changed, 29 insertions, 0 deletions
diff --git a/webpack.config.js b/webpack.config.js
new file mode 100644
index 0000000..11b9069
--- /dev/null
+++ b/webpack.config.js
@@ -0,0 +1,29 @@
1'use strict';
2
3var path = require('path');
4
5var webpack = require('webpack');
6
7var noErrorsPlugin = webpack.NoErrorsPlugin;
8
9var dedupePlugin = webpack.optimize.DedupePlugin;
10
11var config
12 = { cache: true
13 , target: 'node'
14 , entry: { index: './entry' }
15 , externals: { 'glob': 'commonjs glob'
16 , 'loader-utils': 'commonjs loader-utils'
17 }
18 , output: { path: __dirname
19 , filename: '[name].js'
20 , libraryTarget: 'commonjs2'
21 }
22 , plugins: [ new noErrorsPlugin()
23 , new dedupePlugin()
24 ]
25 , resolve: { modulesDirectories: [ 'build' ] }
26 }
27 ;
28
29module.exports = config;