[Warning from ImportInliner on woven|web/index.html]:
web/index.html:12:5: absolute paths not allowed: "/packages/polymer/polymer.html"
Thank you for any guidance!
To clarify, basically I mean everything. Polymer imports, static references, references to the Dart/JS scripts, etc.If my server serves the app at /, all is swell, but if it serves it at /item/whatever, suddenly all the relative URLs are thrown off.Do I really have to convert all my relative paths everywhere to absolute paths? That would suck.--D
On Friday, August 22, 2014 3:46:31 PM UTC-4, davenotik wrote:Do you mean specifically for <link rel="import"> and Polymer.dart ?Yes.To view this discussion on the web visit https://groups.google.com/a/dartlang.org/d/msgid/web/465d8f36-e23e-4703-8e31-217bd62784c0%40dartlang.org.--
You received this message because you are subscribed to a topic in the Google Groups "Dart Web Development" group.
To unsubscribe from this topic, visit https://groups.google.com/a/dartlang.org/d/topic/web/szLsH84BpQo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web+uns...@dartlang.org.
Visit this group at http://groups.google.com/a/dartlang.org/group/web/.
And in fact, pub build confirms that absolute paths are at least frowned upon (it's a warning, but says "not allowed").[Warning from ImportInliner on woven|web/index.html]:
web/index.html:12:5: absolute paths not allowed: "/packages/polymer/polymer.html"
Do I really have to convert all my relative paths everywhere to absolute paths? That would suck.
Just to clarify, this warning is coming from a polymer transformer, not pub build itself. So pub doesn't frown on absolute paths, but polymer may.
Ok, so in order to get the app served properly when on URLs like item/whatever, including both pre and post build, I had to handle not only packages/ but also index.html and index.dart and their post build assets like index.html_bootstrap.dart.js (luckily, all those are nicely prefixed with index.html).
My code, see line 45: https://gist.github.com/DaveNotik/79bfc9455c742ec4f7afThis seems so bizarre. There has got to be a better way. Thoughts?
--DOn Mon, Aug 25, 2014 at 3:54 PM, David Notik <da...@woven.org> wrote:
Great insights. Thank you Siggi! I'll try your server handling idea, and follow that bug.--D
--
You received this message because you are subscribed to a topic in the Google Groups "Dart Web Development" group.
To unsubscribe from this topic, visit https://groups.google.com/a/dartlang.org/d/topic/web/szLsH84BpQo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web+uns...@dartlang.org.
Visit this group at http://groups.google.com/a/dartlang.org/group/web/.
--To view this discussion on the web visit https://groups.google.com/a/dartlang.org/d/msgid/web/CAJmP2_rG%2BFjzyDnr71834jk9DHyydwpwj22UGf-3uT%2BiKOJ-9g%40mail.gmail.com.
You received this message because you are subscribed to the Google Groups "Dart Web Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web+uns...@dartlang.org.
To view this discussion on the web visit https://groups.google.com/a/dartlang.org/d/msgid/web/CACekCDkLhPStz%2BsD3KXga0ZHh2S38hYDahvfTW%3DH42_qPQx%3D8g%40mail.gmail.com.