mirror of
https://github.com/zhigang1992/redux.git
synced 2026-06-11 08:14:07 +08:00
29 lines
588 B
JavaScript
29 lines
588 B
JavaScript
var path = require('path')
|
|
var webpack = require('webpack')
|
|
|
|
module.exports = {
|
|
devtool: 'cheap-module-eval-source-map',
|
|
entry: [
|
|
'webpack-hot-middleware/client',
|
|
'./client/index.js'
|
|
],
|
|
output: {
|
|
path: path.join(__dirname, 'dist'),
|
|
filename: 'bundle.js',
|
|
publicPath: '/static/'
|
|
},
|
|
plugins: [
|
|
new webpack.optimize.OccurenceOrderPlugin(),
|
|
new webpack.HotModuleReplacementPlugin()
|
|
],
|
|
module: {
|
|
loaders: [
|
|
{
|
|
test: /\.js$/,
|
|
loaders: ['babel'],
|
|
exclude: /node_modules/,
|
|
include: __dirname
|
|
}
|
|
]
|
|
}
|
|
} |