Merge the latest version of Speedometer 2.0 to browserbench.org against at r221119.
[WebKit-https.git] / Websites / browserbench.org / Speedometer2.0 / resources / todomvc / architecture-examples / inferno / webpack.config.js
1 const webpack = require('webpack');
2
3 module.exports = {
4     entry: './src/index.js',
5     output: {
6         path: './dist',
7         publicPath: 'dist',
8         filename: 'bundle.js'
9     },
10     module: {
11         loaders: [{
12             test: /\.jsx?$/,
13             exclude: /node_modules/,
14             loader: 'babel',
15             query: {
16                 presets: ['es2015-loose', 'stage-0'],
17                 plugins: ['syntax-jsx', 'inferno']
18             }
19         }]
20     },
21     plugins: [
22         new webpack.DefinePlugin({
23             'process.env': {
24                 'NODE_ENV': JSON.stringify('production')
25             }
26         }),
27     ],
28     devServer: {
29         port: process.env.PORT || 8000
30     }
31 };