From d6682a1ed9acd31dbfdb9e645cc8230c61a268c3 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> Date: Sat, 25 Mar 2023 09:21:11 +0530 Subject: Disable minification in development. --- config/webpack/plugins/create-manifest-webpack-plugin/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config/webpack/plugins/create-manifest-webpack-plugin/index.js') diff --git a/config/webpack/plugins/create-manifest-webpack-plugin/index.js b/config/webpack/plugins/create-manifest-webpack-plugin/index.js index 6984955..1940c6e 100644 --- a/config/webpack/plugins/create-manifest-webpack-plugin/index.js +++ b/config/webpack/plugins/create-manifest-webpack-plugin/index.js @@ -52,7 +52,7 @@ class CreateManifestPlugin { compilation.emitAsset( "manifest.json", - new sources.RawSource(JSON.stringify(manifest)) + new sources.RawSource(JSON.stringify(manifest, undefined, process.env.NODE_ENV === "production" ? undefined : "\t")) ); } ); -- cgit v1.2.3