alchaplinsky / polymer-rails

Polymer and web components for Ruby on Rails
MIT License
286 stars 80 forks source link

Use vulcanize to inline dependencies, scripts and css #81

Closed HappyKadaver closed 8 years ago

HappyKadaver commented 8 years ago

Inlining scripts, css and imports manually with nokogiri causes all sorts of unwanted side effects for example it removes the value of disabled attributes. That's why I tried to replace nokogiri with vulcanize in this project. Vulcanize is build by the polymer developers and does mostly what this project tries to achieve with nokogiri without the side effects.

I got It to a point where it is usable but it does not integrate with the rails asset pipeline very nicely.