Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
dee4232d
Commit
dee4232d
authored
Oct 24, 2019
by
Harry Terkelsen
Committed by
Zachary Anderson
Oct 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
For --profile builds on web, still use -O4 but unminified names. (#43214)
parent
096a8ac4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
web.dart
packages/flutter_tools/lib/src/build_system/targets/web.dart
+2
-2
web_test.dart
...ols/test/general.shard/build_system/targets/web_test.dart
+2
-1
No files found.
packages/flutter_tools/lib/src/build_system/targets/web.dart
View file @
dee4232d
...
...
@@ -137,10 +137,10 @@ class Dart2JSTarget extends Target {
'--libraries-spec=
$specPath
'
,
if
(
dart2jsOptimization
!=
null
)
'-
$dart2jsOptimization
'
else
if
(
buildMode
==
BuildMode
.
profile
)
'-O1'
else
'-O4'
,
if
(
buildMode
==
BuildMode
.
profile
)
'--no-minify'
,
'-o'
,
outputFile
.
path
,
'--packages=
$packageFile
'
,
...
...
packages/flutter_tools/test/general.shard/build_system/targets/web_test.dart
View file @
dee4232d
...
...
@@ -158,7 +158,8 @@ void main() {
fs
.
path
.
join
(
'bin'
,
'cache'
,
'dart-sdk'
,
'bin'
,
'dart'
),
fs
.
path
.
join
(
'bin'
,
'cache'
,
'dart-sdk'
,
'bin'
,
'snapshots'
,
'dart2js.dart.snapshot'
),
'--libraries-spec='
+
fs
.
path
.
join
(
'bin'
,
'cache'
,
'flutter_web_sdk'
,
'libraries.json'
),
'-O1'
,
// lowest optimizations.
'-O4'
,
// highest optimizations
'--no-minify'
,
// but uses unminified names for debugging
'-o'
,
environment
.
buildDir
.
childFile
(
'main.dart.js'
).
absolute
.
path
,
'--packages=.packages'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment