Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(151)

Unified Diff: lib/src/utils.dart

Issue 1645343002: Builds / serves multiple HTML files. (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Cleanup Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: lib/src/utils.dart
diff --git a/lib/src/utils.dart b/lib/src/utils.dart
index 8e3f54a8f58fa93158197b4a0bf09b6cdc9f149c..73ca1550a4b9ce2d826b3a64e83f5616acd39501 100644
--- a/lib/src/utils.dart
+++ b/lib/src/utils.dart
@@ -315,7 +315,10 @@ String resourceOutputPath(Uri resourceUri, Uri entryUri, String runtimeDir) {
if (resourceUri.scheme != 'file') return null;
- var entryDir = path.dirname(entryUri.path);
+ var entryPath = entryUri.path;
+ var entryDir = entryPath.endsWith('.dart') || entryPath.endsWith('.html')
Jennifer Messerly 2016/01/29 16:49:49 A comment might be nice here, not sure I follow wh
vsm 2016/01/29 18:13:51 Done.
+ ? path.dirname(entryPath)
+ : entryPath;
var filepath = path.normalize(path.join(entryDir, resourceUri.path));
if (path.isWithin(runtimeDir, filepath)) {
filepath = path.relative(filepath, from: runtimeDir);

Powered by Google App Engine
This is Rietveld 408576698