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
11589ca2
Unverified
Commit
11589ca2
authored
Feb 18, 2020
by
Jacob MacDonald
Committed by
GitHub
Feb 18, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
serve the generated main.dart file so source_maps work for it (#50976)
parent
d0b7f0cd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
devfs_web.dart
packages/flutter_tools/lib/src/build_runner/devfs_web.dart
+1
-0
devfs_web_test.dart
.../flutter_tools/test/general.shard/web/devfs_web_test.dart
+1
-0
No files found.
packages/flutter_tools/lib/src/build_runner/devfs_web.dart
View file @
11589ca2
...
...
@@ -431,6 +431,7 @@ class WebDevFS implements DevFS {
if
(
bundleFirstUpload
)
{
generator
.
addFileSystemRoot
(
outputDirectoryPath
);
final
String
entrypoint
=
globals
.
fs
.
path
.
basename
(
mainPath
);
webAssetServer
.
writeFile
(
'/
$entrypoint
'
,
globals
.
fs
.
file
(
mainPath
).
readAsStringSync
());
webAssetServer
.
writeFile
(
'/manifest.json'
,
'{"info":"manifest not generated in run mode."}'
);
webAssetServer
.
writeFile
(
'/flutter_service_worker.js'
,
'// Service worker not loaded in run mode.'
);
webAssetServer
.
writeFile
(
...
...
packages/flutter_tools/test/general.shard/web/devfs_web_test.dart
View file @
11589ca2
...
...
@@ -319,6 +319,7 @@ void main() {
invalidatedFiles:
<
Uri
>[],
);
expect
(
webDevFS
.
webAssetServer
.
getFile
(
'/main.dart'
),
isNotNull
);
expect
(
webDevFS
.
webAssetServer
.
getFile
(
'/manifest.json'
),
isNotNull
);
expect
(
webDevFS
.
webAssetServer
.
getFile
(
'/flutter_service_worker.js'
),
isNotNull
);
...
...
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