brutal-legends/webpack.config.js
Anders Ytterström ec27589232 Initial Commit
React app with Redux state, mostly based around the todo example in the
Redux documentation.

It's a list of items (albums) which can be filtered by a string.

 * A list of albums that is mapped from state to props.
 * A filter input is controlled by redux state.
2018-11-21 14:57:00 +01:00

30 lines
523 B
JavaScript

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