-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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
Usage with Web Components #547
Comments
I'm curious about that too 👍 |
@jhnns I was going to start by forking this https://github.com/vuejs/vue-loader |
I have a simple polymer element with html imports, how can I use webpack to bundle it into a component? |
👍 |
Also interested here. Any comments? Thanks! |
polymer-loader seems to have some support, but as of now requires the JavaScript Polymer(...) registration in a separate JavaScript file, which makes it somewhat incompatible with Polymer Paper Elements collection, if I understand it correctly. I've filed an issue JonDum/polymer-loader#1, and I plan to look into it. There's also a related issue in the html-loader repo, webpack-contrib/html-loader#14. Have anyone here made any progress? |
This is probably also related to #860 since polymer components can host html, js and css? |
Yes, it seems highly relevant. Asked OP about current status, with any luck it could be a good start. |
Any news / plans? Polymer is now 1.0, and still can't be used nicely with web pack. A loader that functions similar to "vulcanize" might be enough (inline all |
I make a simple solution with polymer-ext |
Following this issue and looking at the code inside polymer-loader, I am a bit concerned. Is this the proposed solution? The problem I have is the mixup between the document objects. There are actually two, one for the HTML Imports component and one for the main javascript runtime (where the library is added as a property to window). So we are talking about How would someone write a loader if his code relies on those two objects in order to have a proper supported Shadow DOM implementation? I'm asking because the code for my library fytoJS looks like this and I have no single clue where to start with webpack. |
Loaders should do only a single task , but those loaders do actually like a manager.How terrible they are! |
I've built a package to handle polymer/webcomponents files and html imports (with HMR support) https://github.com/aruntk/wc-loader. check out. |
I've setup a simple boilerplate webpack2 project for web components. Hello world example with template. You can easy add polymer to it. |
For those following this thread, webpack-contrib/polymer-webpack-loader is worth taking a look at. @robdodson did a writeup on Medium: How to use Polymer with Webpack. |
Thanks everyone! Please use https://github.com/webpack-contrib/polymer-webpack-loader for web components |
Any examples of how one can use this with Web Components, or say, Polymer?
The text was updated successfully, but these errors were encountered: