ReduxSimpleStarter/webpack.config.js

31 lines
523 B
JavaScript
Raw Normal View History

module.exports = {
2018-04-30 14:57:30 +00:00
entry: ['./src/index.js'],
output: {
path: __dirname,
publicPath: '/',
filename: 'bundle.js'
},
module: {
2018-04-30 14:57:30 +00:00
loaders: [
{
exclude: /node_modules/,
loader: 'babel',
query: {
presets: ['react', 'es2015', 'stage-1']
}
}
2018-04-30 14:57:30 +00:00
]
},
resolve: {
extensions: ['', '.js', '.jsx']
},
devServer: {
historyApiFallback: true,
2018-04-30 14:57:30 +00:00
contentBase: './',
watchOptions: {
aggregateTimeout: 300,
poll: 1000
}
}
};