mirror of
https://github.com/zhigang1992/redux.git
synced 2026-06-12 09:08:52 +08:00
21 lines
575 B
JavaScript
21 lines
575 B
JavaScript
var path = require('path')
|
|
var webpack = require('webpack')
|
|
var HtmlWebpackPlugin = require('html-webpack-plugin')
|
|
|
|
module.exports = {
|
|
devtool: 'cheap-module-eval-source-map',
|
|
entry: [ './src/index', 'webpack-hot-middleware/client' ],
|
|
plugins: [
|
|
new webpack.HotModuleReplacementPlugin(),
|
|
new HtmlWebpackPlugin({ title: 'Redux counter example' }),
|
|
new webpack.DefinePlugin({ 'process.env.NODE_ENV': '"development"' })
|
|
],
|
|
module: {
|
|
loaders: [ {
|
|
test: /\.js$/,
|
|
loaders: [ 'babel' ],
|
|
include: path.join(__dirname, 'src')
|
|
} ]
|
|
}
|
|
}
|