From 9a838f1d553917b3ed2bb6ed396a432626899b9d Mon Sep 17 00:00:00 2001 From: Sky Chen Date: Tue, 11 Feb 2020 23:49:09 -0800 Subject: [PATCH] Only extract the inline javascript for production mode --- webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index e24d5cf8..90889bdf 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -259,7 +259,7 @@ module.exports = async function (_, env) { filename: '_redirects', }), - new ScriptExtHtmlPlugin({ + isProd && new ScriptExtHtmlPlugin({ inline: ['first'] }),