This is a node module which exposes a webpack loader and plugin to extract css from hot module reloads.
You are trying to hot reload css server side and you use ExtractTextWebpackPLugin.
Use ExtractTextWebpackPLugin for production and ExtractCssHMR (this module) for development.
npm install extract-css-hmr --save-dev
Add the loader and plugin to you webpack config.
module: {
rules: [{
test: /\.scss$/,
use: [
'style-loader',
'css-loader',
'extract-css-hmr/loader',
'sass-loader'
]
}]
},
plugins: [
new ExtractCssHmrPlugin({
identify: '[name]-[hash].css'
})
]
``