Closed tonilaukka closed 9 years ago
Yeah I've been meaning to change up the initial layout so it's more of a single page app using core and paper elements.
To answer your question, if you're making an x-app
element, then you would put x-app.html
in your elements.html
file, and then put the imports for the core stuff in x-app
. Vulcanize will walk the tree from elements.html -> x-app.html -> [any core/paper elements] and bundle it all for you, so you wouldn't need to change anything there.
If you're not making an x-app
element, then just put them in the elements.html
file
Thanks. Figured out the same by just doing it. ;) Although I'm not sure if I should wrap my app in x-app
element. I think I can just move all the imports to elements.html and work with index.html as you mentioned.
I think moving towards single app layout would be a good decision.
Fixed in afcda33d754a9e818bca72e0007ed77865374193
How you should use core elements and paper elements in your app? Do you import them in index.html or in your elements html file? Say I would like to use core-header-panel and core-toolbar. Do I import them in my x-app.html or in index.html? Do I need to edit index.html or Gruntfile.js for vulcanize to work correctly?