aboutsummaryrefslogtreecommitdiffhomepage
path: root/example/webpack.config.js
blob: 19997f37bb92eb3c3888066bb3bf79db45f00bc7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
var path = require('path');

var config
  = { entry: './src/entry'
    , output: { path: __dirname
              , filename: 'bundle.js'
              }
    , module: { loaders: [ { test: /\.purs$/, loader: 'purs-loader' } ] }
    , resolve: { modulesDirectories: [ 'node_modules',
                                       'output'
                                     ]
               , extensions: ['', '.js', '.purs']
               }
    , resolveLoader: { root: path.join(__dirname, 'node_modules') }
    }
    ;

module.exports = config;