I'm curious if anyone uses SASS or Pug(jade) in Polymer components and how you implement. Do you use polymer-build / Gulp? What about JS Modules?
An Introduction to Polymer - A Web Component Library
51–56 of 56 posts
Re: An Introduction to Polymer - A Web Component Library
#52I'm curious if anyone uses SASS or Pug(jade) in Polymer components and how you implement. Do you use polymer-build / Gulp? What about JS Modules?
I just use Gulp alongside the standard Polymer CLI. Here's my Gulp config https://gist.github.com/NickRun/977bb54eada17653acc81ccd63b1...
Re: An Introduction to Polymer - A Web Component Library
#53Earlier quoted context omitted.
@nverba Hoi mate, Any pointers about using redux with polymer? I have been using polymer for some eight months now. I tried to implement redux in one of my components a couple of months back. But I couldn't finish it, because of the humongous refactoring work.
You can check out polymer-redux ( https://github.com/tur-nr/polymer-redux ). It's makes it easy to integrate the redux store inside your components. Basically you will split up your components in two types: 1.) container components that are redux aware and subscribes to slices of your state graph and pure presentational components that are unaware of redux and are management by the container components. This is simil…
Re: An Introduction to Polymer - A Web Component Library
#54I have recently decided to switch from Polymer to Material2 for the following reasons: - Polymer is only available through bower, which means I have to teach 2 package management systems to my developers. - The documentation is not great (for instance, events are documented in camelCase, but must be listened for in Angular 2 using dashes-between-words). - There are serious issues [0] which not gone resolved for a lon…
you serious issue IS merged https://github.com/webcomponents/webcomponentsjs/pull/644 ;-) Also its NOT polymer issue - it is polyfill issue. It affects things like x-tag,bosonic and others. ANyways it looks like latest release is the fixed version.
Re: An Introduction to Polymer - A Web Component Library
#55Earlier quoted context omitted.
Sure, but look at it this way - with other solutions like lets say React their virtual dom is your "polyfill". Even with polyfills polymer is MUCH smaller than react core ;-) I don't see it as a problem as I've created elements that worked in IE10+ with it.
React's virtual DOM has a far smaller performance impact than the web components polyfills have...
Re: An Introduction to Polymer - A Web Component Library
#56Earlier quoted context omitted.
You can check out polymer-redux ( https://github.com/tur-nr/polymer-redux ). It's makes it easy to integrate the redux store inside your components. Basically you will split up your components in two types: 1.) container components that are redux aware and subscribes to slices of your state graph and pure presentational components that are unaware of redux and are management by the container components. This is simil…
Thanks for the link. Still the presentational components have to be 2-way binded, right?