blob: c7b3e6f7fd68bbc693f2e385c0ce21ad43e045bd [file] [log] [blame]
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
}
};