diff --git a/tool/flutter_site/lib/src/commands/build.dart b/tool/flutter_site/lib/src/commands/build.dart index c229f7097a..c0e26f8bc3 100644 --- a/tool/flutter_site/lib/src/commands/build.dart +++ b/tool/flutter_site/lib/src/commands/build.dart @@ -37,7 +37,8 @@ final class BuildSiteCommand extends Command { const ['eleventy'], environment: { 'PRODUCTION': '$productionRelease', - 'OPTIMIZE': '$productionRelease', + // docs.flutter.cn 为了翻译工具 (tool/translator) 格式调整和解析,暂不需要优化(压缩 HTML 结构等) + 'OPTIMIZE': 'false', // '$productionRelease' }, );