mirror of
https://github.com/zulip/zulip.git
synced 2025-11-17 04:12:02 +00:00
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:
@@ -92,12 +92,7 @@ export default (_env: unknown, argv: {mode?: string}): webpack.Configuration[] =
|
|||||||
test: /\.css$/,
|
test: /\.css$/,
|
||||||
exclude: path.resolve(__dirname, "static/styles"),
|
exclude: path.resolve(__dirname, "static/styles"),
|
||||||
use: [
|
use: [
|
||||||
{
|
MiniCssExtractPlugin.loader,
|
||||||
loader: MiniCssExtractPlugin.loader,
|
|
||||||
options: {
|
|
||||||
hmr: !production,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
cacheLoader,
|
cacheLoader,
|
||||||
{
|
{
|
||||||
loader: "css-loader",
|
loader: "css-loader",
|
||||||
@@ -112,12 +107,7 @@ export default (_env: unknown, argv: {mode?: string}): webpack.Configuration[] =
|
|||||||
test: /\.css$/,
|
test: /\.css$/,
|
||||||
include: path.resolve(__dirname, "static/styles"),
|
include: path.resolve(__dirname, "static/styles"),
|
||||||
use: [
|
use: [
|
||||||
{
|
MiniCssExtractPlugin.loader,
|
||||||
loader: MiniCssExtractPlugin.loader,
|
|
||||||
options: {
|
|
||||||
hmr: !production,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
cacheLoader,
|
cacheLoader,
|
||||||
{
|
{
|
||||||
loader: "css-loader",
|
loader: "css-loader",
|
||||||
|
|||||||
Reference in New Issue
Block a user