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
49fac9a8
Unverified
Commit
49fac9a8
authored
Aug 11, 2020
by
Jonah Williams
Committed by
GitHub
Aug 11, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[flutter_tools] add more error context to tree shaker failure (#63446)
parent
d06c8fa5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
icon_tree_shaker.dart
..._tools/lib/src/build_system/targets/icon_tree_shaker.dart
+4
-2
No files found.
packages/flutter_tools/lib/src/build_system/targets/icon_tree_shaker.dart
View file @
49fac9a8
...
...
@@ -66,7 +66,7 @@ class IconTreeShaker {
}
}
/// The MIME type
for ttf fon
ts.
/// The MIME type
s for supported font se
ts.
static
const
Set
<
String
>
kTtfMimeTypes
=
<
String
>{
'font/ttf'
,
// based on internet search
'font/opentype'
,
...
...
@@ -383,5 +383,7 @@ class IconTreeShakerException implements Exception {
final
String
message
;
@override
String
toString
()
=>
'FontSubset error:
$message
'
;
String
toString
()
=>
'IconTreeShakerException:
$message
\n\n
'
'To disable icon tree shaking, pass --no-tree-shake-icons to the requested '
'flutter build command'
;
}
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