| Index: lib/src/codegen/html_codegen.dart
|
| diff --git a/lib/src/codegen/html_codegen.dart b/lib/src/codegen/html_codegen.dart
|
| index da35c2cc279987154aa0667bb1e2f23214294557..7c26d88919299ac388898ccfdaa656b6fee5f24a 100644
|
| --- a/lib/src/codegen/html_codegen.dart
|
| +++ b/lib/src/codegen/html_codegen.dart
|
| @@ -70,10 +70,16 @@ String generateEntryHtml(HtmlSourceNode root, AbstractCompiler compiler) {
|
| }
|
| });
|
|
|
| + var rootDir = path.dirname(root.uri.path);
|
| + String rootRelative(String fullPath) {
|
| + return path.relative(path.join(compiler.inputBaseDir, fullPath),
|
| + from: rootDir);
|
| + }
|
| +
|
| var fragment = new DocumentFragment();
|
| for (var resource in resources) {
|
| - var resourcePath =
|
| - resourceOutputPath(resource.uri, root.uri, options.runtimeDir);
|
| + var resourcePath = rootRelative(
|
| + resourceOutputPath(resource.uri, root.uri, options.runtimeDir));
|
| var ext = path.extension(resourcePath);
|
| if (resource.cachingHash != null) {
|
| resourcePath = _addHash(resourcePath, resource.cachingHash);
|
| @@ -94,7 +100,7 @@ String generateEntryHtml(HtmlSourceNode root, AbstractCompiler compiler) {
|
| var info = lib.info;
|
| if (info == null) continue;
|
| var uri = info.library.source.uri;
|
| - var jsPath = compiler.getModulePath(uri);
|
| + var jsPath = rootRelative(compiler.getModulePath(uri));
|
| if (uri == scriptUri) mainLibraryName = compiler.getModuleName(uri);
|
| if (lib.cachingHash != null) {
|
| jsPath = _addHash(jsPath, lib.cachingHash);
|
|
|