-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTML imports with bower inconsistencies #113
Comments
Regarding your second point, I think it actually isn't inconsistent.
is actually ES6 import syntax, which makes sense given that all two code are essentially modules. The |
Just as @tpluscode pointed out, As for incorrect paths calculation, could you provide some samples? Last time I checked it all worked fine, given the fact that paths are calculated to work with bower components flow (components end up being placed inside As for backslashes instead of slashes, I got it reported twice already, will take care of that once I am back to the project (closer to the end of October). I'd love to do it quicker but I really can't :(. I can however give all the verbal help to fix that issue :). It is basically my bad of forgetting that front-end paths are platform agnostic and should not use |
On the bright side browsers seem to handle the wrong slashes just fine :) |
Browsers fix a lot of developers mistakes, which is awesome, but is actually the cause why we have so bad quality of code all around the internet :P. |
I was certainly not trying to imply allowing or requiring |
That could work either way I think. Maybe it will not be an issue when you combine two with potts. It generates module definitions for elements in bower_components. Still give you the |
The extension in imports tells @tpluscode When I checked |
Yea it pretty much works. Well, breaks on non-Polymer elements (try nuclei/status-bar) but otherwise I haven't had issues. |
Probably due to it relying on polymer-analyzer :P. Anyway, will need to revise it at some point anyway. |
The path is correct, -project and I use I can zip a minimal project and attach it. |
So yes, this is intended behavior. Most Polymer projects are single components so I made it a default. If you build a project, you might have |
OK, I can accept that, though possibly a tweak to the readme would make it more obvious. In any case, intended behavior is intended behavior. Thanks for your assistance. |
I will definitely put that in the readme, somewhere where it's hard omit. This is actually what people asked about a lot with |
#113: HTML imports with bower inconsistencies - fixing incorrect path separators
Using the
bower:
syntax, if.bowerrc
is not present,<link rel="import" href=" ... ">
is generated with a path of../../
regardless of the custom element's location in the project. If.bowerrc
is present, the relative path is correctly calculated. But, in either case, on Windows, the path is generated with backslashes instead of forward slashes.The
bower:
reference is also inconsistent with referencing another custom element in the project. To referencemy-element.html
one must use./my-element
not./my-element.html
(which would generate a link with hrefmy-element.html.html
), but with thebower:
the.html
is required.The text was updated successfully, but these errors were encountered: