aboutsummaryrefslogtreecommitdiffhomepage
path: root/webpack.config.js
diff options
context:
space:
mode:
authorAlex Mingoia <talk@alexmingoia.com>2016-05-10 00:09:28 -0700
committerAlex Mingoia <talk@alexmingoia.com>2016-05-10 00:09:28 -0700
commit7de41f10b4ff0f0d6b45d59bee0f166c3cfe3f9f (patch)
tree9ee160ba5b7dab900ccd1cfa657760e4103a175e /webpack.config.js
parent777472b3830cb3d2ff3390003ea422c6d4522715 (diff)
downloadpurs-loader-7de41f10b4ff0f0d6b45d59bee0f166c3cfe3f9f.tar.gz
purs-loader-7de41f10b4ff0f0d6b45d59bee0f166c3cfe3f9f.tar.zst
purs-loader-7de41f10b4ff0f0d6b45d59bee0f166c3cfe3f9f.zip
Refactor to compile independently of purescript-webpack-plugin.
- Remove dependence on purescript-webpack-plugin - Fixes double-compilation issue by loading compiled JS instead of adding dependency. - Uses `psc-ide-server` for fast rebuilds.
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js32
1 files changed, 0 insertions, 32 deletions
diff --git a/webpack.config.js b/webpack.config.js
deleted file mode 100644
index a39832f..0000000
--- a/webpack.config.js
+++ /dev/null
@@ -1,32 +0,0 @@
1'use strict';
2
3var path = require('path');
4
5var webpack = require('webpack');
6
7var packageJson = require('./package.json');
8
9var noErrorsPlugin = webpack.NoErrorsPlugin;
10
11var dedupePlugin = webpack.optimize.DedupePlugin;
12
13var config
14 = { cache: true
15 , target: 'node'
16 , entry: { index: './entry' }
17 , externals: Object.keys(packageJson.dependencies).reduce(function(b, a){
18 b[a] = 'commonjs ' + a;
19 return b;
20 }, {})
21 , output: { path: __dirname
22 , filename: '[name].js'
23 , libraryTarget: 'commonjs2'
24 }
25 , plugins: [ new noErrorsPlugin()
26 , new dedupePlugin()
27 ]
28 , resolve: { modulesDirectories: [ 'build' ] }
29 }
30 ;
31
32module.exports = config;