Add inferno in todoapp benchmark
This commit is contained in:
parent
02e7b40c07
commit
d571dd2e56
26 changed files with 8148 additions and 5 deletions
31
bench/implementations/inferno/webpack.config.js
Normal file
31
bench/implementations/inferno/webpack.config.js
Normal 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
|
||||
}
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue