Skip to content

Commit

Permalink
Fix: Build site for production
Browse files Browse the repository at this point in the history
  • Loading branch information
AmosHuKe committed Oct 28, 2024
1 parent f114e61 commit 1692d35
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tool/flutter_site/lib/src/commands/build.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ final class BuildSiteCommand extends Command<int> {
const ['eleventy'],
environment: {
'PRODUCTION': '$productionRelease',
'OPTIMIZE': '$productionRelease',
// docs.flutter.cn 为了翻译工具 (tool/translator) 格式调整和解析,暂不需要优化(压缩 HTML 结构等)
'OPTIMIZE': 'false', // '$productionRelease'
},
);

Expand Down

0 comments on commit 1692d35

Please sign in to comment.