Skip to content

Make images smaller using best-in-class codecs, right in the browser.

JavaScript

Only extract the inline javascript for production mode

Sky Chen9a838f1d5539
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']
}),