webpack: Remove unused hmr option for mini-css-extract-plugin.

This option was removed in mini-css-extract-plugin@1.0.0.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2020-12-09 14:43:09 -08:00
parent 362d4a6a8d
commit 710bb4357e
1 changed files with 2 additions and 12 deletions

View File

@ -92,12 +92,7 @@ export default (_env: unknown, argv: {mode?: string}): webpack.Configuration[] =
test: /\.css$/,
exclude: path.resolve(__dirname, "static/styles"),
use: [
{
loader: MiniCssExtractPlugin.loader,
options: {
hmr: !production,
},
},
MiniCssExtractPlugin.loader,
cacheLoader,
{
loader: "css-loader",
@ -112,12 +107,7 @@ export default (_env: unknown, argv: {mode?: string}): webpack.Configuration[] =
test: /\.css$/,
include: path.resolve(__dirname, "static/styles"),
use: [
{
loader: MiniCssExtractPlugin.loader,
options: {
hmr: !production,
},
},
MiniCssExtractPlugin.loader,
cacheLoader,
{
loader: "css-loader",