Chromium Code Reviews| 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); |