summaryrefslogtreecommitdiff
path: root/web-ui/webpack.config.js
blob: 5886154a7fef3e298788bfad637120ed90dfe2ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
var path = require('path');
var webpack = require('webpack');
var copyWebpack = require('./config/copy-webpack');
var loaders = require('./config/loaders-webpack');
var aliases = require('./config/alias-webpack');

module.exports = {
  entry: {
    app: './app/js/index.js',
    account_recovery: './app/js/account_recovery.js',
    sandbox: './app/js/sandbox.js'
  },
  node: { fs: 'empty' },
  output: {
    path: path.join(__dirname, 'dist'),
    filename: '[name].js',
    publicPath: '/assets/'
  },
  resolve: {
    alias: aliases,
    extensions: ['', '.js']
  },
  module: {
    loaders: loaders
  },
  plugins: [copyWebpack, new webpack.DefinePlugin({
    'process.env': {
      'NODE_ENV': '"development"'
    }
  })]
}