2018-01-25 23:32:53 -06:00
|
|
|
const webpack = require('webpack')
|
|
|
|
const merge = require('webpack-merge')
|
|
|
|
|
2018-01-28 12:34:37 -06:00
|
|
|
const WriteFilePlugin = require('write-file-webpack-plugin')
|
2018-02-03 15:48:25 -06:00
|
|
|
const SimpleProgressWebpackPlugin = require('simple-progress-webpack-plugin')
|
2018-01-26 19:22:31 -06:00
|
|
|
|
2018-01-25 23:32:53 -06:00
|
|
|
const common = require('./webpack.common.js')
|
|
|
|
|
|
|
|
module.exports = merge(common, {
|
2018-03-16 21:51:56 -05:00
|
|
|
mode: 'development',
|
2018-01-26 23:20:49 -06:00
|
|
|
entry: {
|
|
|
|
client: ['./client/index.js', 'webpack-hot-middleware/client']
|
|
|
|
},
|
|
|
|
output: {
|
2018-03-09 23:58:04 -06:00
|
|
|
pathinfo: true
|
2018-01-25 23:32:53 -06:00
|
|
|
},
|
|
|
|
plugins: [
|
2018-02-03 15:48:25 -06:00
|
|
|
new SimpleProgressWebpackPlugin({
|
|
|
|
format: 'compact'
|
|
|
|
}),
|
2018-01-25 23:32:53 -06:00
|
|
|
new webpack.DefinePlugin({
|
2018-03-16 21:51:56 -05:00
|
|
|
'__REACT_DEVTOOLS_GLOBAL_HOOK__': '({ isDisabled: true })'
|
2018-01-26 19:22:31 -06:00
|
|
|
}),
|
2018-01-28 12:34:37 -06:00
|
|
|
new WriteFilePlugin(),
|
2018-01-26 23:20:49 -06:00
|
|
|
new webpack.HotModuleReplacementPlugin(),
|
|
|
|
new webpack.WatchIgnorePlugin([
|
|
|
|
/node_modules/
|
|
|
|
])
|
2018-01-25 23:32:53 -06:00
|
|
|
],
|
2018-01-26 23:20:49 -06:00
|
|
|
watch: true
|
2018-01-25 23:32:53 -06:00
|
|
|
})
|