-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Chrome Packaged App: including the UI elements is not convenient #248
Comments
Is there a bug on Chromium related to it? |
I'm still confused by "I need to alter the source files of my application". When vulcanizer is run, it makes a modified index.html, index-vulcanized.html, that should be completely ready to go. This output file has one import (necessary for a few ShadowDOM CSS runtime fixups), and one JS file when run with the There should be no reason to modify the source files. |
Basic HTML import is not working because of the bug you mentionned. |
Polymer implements a polyfill of HTMLImports, so it does not matter that native HTML Imports are not yet available. Vulcanizer takes the scripts that would have been in the imports and makes a separate script file. What's left in the vulcanized import is only HTML and CSS, with no CSP problems. |
Ok. Clarified. I was not sure if the polyfill worked with the CSP restrictions. |
For now, I have to use vulcanizer and copy-paste the content of build.html in the every views (HTML files) using some polymer elements.
By using vulcanizer, I need to alter the source files of my application.
Also, I need to use the minified version of Polymer JS polyfill: polymer.min.js
It's probably blocked by the lack of support of native HTML import in Chrome.
The text was updated successfully, but these errors were encountered: