1
0
mirror of https://github.com/flutter/samples.git synced 2026-04-01 17:23:18 +00:00

Add flutter_web samples (#75)

This commit is contained in:
Kevin Moore
2019-05-07 13:32:08 -07:00
committed by Andrew Brogdon
parent 42f2dce01b
commit 3fe927cb29
697 changed files with 241026 additions and 0 deletions

30
web/peanut.yaml Normal file
View File

@@ -0,0 +1,30 @@
# Configuration for https://pub.dartlang.org/packages/peanut
directories:
- charts/example/web
- dad_jokes/web
- filipino_cuisine/web
- gallery/web
- github_dataviz/web
- particle_background/web
- slide_puzzle/web
- spinning_square/web
- timeflow/web
- vision_challenge/web
builder-options:
build_web_compilers|entrypoint:
dart2js_args:
# Generate `.info.json` files for compiled libraries.
- --dump-info
# Reduces diffs between builds, but increases JS output size slightly.
- --no-frequency-based-minification
# Deployed example does not include Dart source. Not needed.
- --no-source-maps
# Enable all dart2js optimizations. Not recommended without thorough testing.
- -O4
build_web_compilers|dart2js_archive_extractor:
# Ensures .info.json file is preserved. Useful for tracking output details.
filter_outputs: false
post-build-dart-script: _tool/peanut_post_build.dart