if (process.env.NODE_ENV == 'production') { config.plugins = [ ...config.plugins, new HtmlCriticalWebpackPlugin({ base: path.resolve(__dirname, 'build'), src: 'index.html', dest: 'index.html', inline: true, minify: true, extract: true, width: 320, height: 565, penthouse: { blockJSRequests: false }, }) ] }