Add inferno in todoapp benchmark

This commit is contained in:
Roman Vishnevskii 2017-04-24 17:10:12 +07:00
commit d571dd2e56
26 changed files with 8148 additions and 5 deletions

View file

@ -0,0 +1,31 @@
const webpack = require('webpack');
module.exports = {
entry: './src/index.js',
output: {
path: './dist',
publicPath: 'dist',
filename: 'bundle.js'
},
module: {
loaders: [{
test: /\.jsx?$/,
exclude: /node_modules/,
loader: 'babel',
query: {
presets: ['es2015-loose', 'stage-0'],
plugins: ['syntax-jsx', 'inferno']
}
}]
},
plugins: [
new webpack.DefinePlugin({
'process.env': {
'NODE_ENV': JSON.stringify('production')
}
}),
],
devServer: {
port: process.env.PORT || 8000
}
};