You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
const webpack = require('webpack')
|
|
|
|
const merge = require('webpack-merge')
|
|
|
|
|
|
|
|
const WriteFilePlugin = require('write-file-webpack-plugin')
|
|
|
|
const SimpleProgressWebpackPlugin = require('simple-progress-webpack-plugin')
|
|
|
|
|
|
|
|
const common = require('./webpack.common.js')
|
|
|
|
|
|
|
|
module.exports = merge(common, {
|
|
|
|
mode: 'development',
|
|
|
|
entry: {
|
|
|
|
client: ['./client/index.js', 'webpack-hot-middleware/client']
|
|
|
|
},
|
|
|
|
output: {
|
|
|
|
pathinfo: true
|
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
new SimpleProgressWebpackPlugin({
|
|
|
|
format: 'compact'
|
|
|
|
}),
|
|
|
|
new webpack.DefinePlugin({
|
|
|
|
'__REACT_DEVTOOLS_GLOBAL_HOOK__': '({ isDisabled: true })'
|
|
|
|
}),
|
|
|
|
new WriteFilePlugin(),
|
|
|
|
new webpack.HotModuleReplacementPlugin(),
|
|
|
|
new webpack.WatchIgnorePlugin([
|
|
|
|
/node_modules/
|
|
|
|
])
|
|
|
|
],
|
|
|
|
watch: true
|
|
|
|
})
|