import webpack , { Configuration } from 'webpack' ; import baseConfig from './webpack.base.config' ; const config = Object . assign ( baseConfig , { mode : 'development' , devtool : 'inline-cheap-source-map' , entry : [ ... ( baseConfig . entry as string [ ] ) , 'webpack-hot-middleware/client' ] , output : Object . assign ( baseConfig . output , { publicPath : '/static/' , } ) , plugins : [ new webpack . HotModuleReplacementPlugin ( ) ] , } ) ; export default config ;