aurelia-polymer icon indicating copy to clipboard operation
aurelia-polymer copied to clipboard

export Aurelia/Polymer application

Open k2s opened this issue 8 years ago • 4 comments

what is the optimal way to build Aurelia+Polymer application for production ?

there is gulp export in Aurelia skeleton which handles Aurelia part, but doesn't handle linked template files which Polymer uses.

would it be possible to add to aurelia-polymer plugin gulp task which would enhace aurelia-bundler plugin ?

k2s avatar Feb 26 '16 21:02 k2s

Since the HTML imports use absolute paths, it should be enough to copy the bower_components directory. I haven't used it too much, but you could also try vulcanize or something similar to bundle the Polymer components, but that would require an extra layer of indirection since the HTML imports in your templates would still need to work.

bnavetta avatar Feb 26 '16 21:02 bnavetta

I'm not entirely comfortable forcing users to structure their code such that something like vulcanize could be used automatically, so this might have to stay on a case-by-case basis.

bnavetta avatar Mar 18 '16 19:03 bnavetta

Has anyone done this yet? I currently stuck on this problem: https://github.com/aurelia/html-import-template-loader/issues/15

ardean avatar Sep 23 '16 18:09 ardean

Do you have aurelia-bundler set up for HTML imports?

bnavetta avatar Sep 26 '16 02:09 bnavetta