Hi Rob,
Well first of all, thanks for building the generator, it really helped getting on board with Polymer. Secondly, let me say that I'm no pro developer (not my job and I started modern javascript as a side hobby two years ago with Meteor which makes building and deployment completely seemless), so my issues might just be related to my beginner level with Grunt.
- /styles/fonts were not copied. No big deal, easy fix.
- Some SVG files were corrupted by imagemin, so I had *.svg files directly copied instead of being processed by imagemin. Again, easy fix.
- The main issue was related to grunt-vulcanize. Using the initial settings, the build was depending on bower_components/polymer/polymer.html, which had side effects such as forcing us to keep a reference to the bower_components directory and not minifying polymer.js within our vendor.min.js file. Also, the whole bower_components directory with all dependencies was copied within the build directory, and all polymer-elements html + css files were also copied, even if the built index.html only referenced the elements.vulcanized.html file. Eventually, we found out that using the csp, inline, strip options set to true would break the dependency on polymer.html in the bower_components directory, and directly include it within the elements.vulcanized.js file. We therefore implemented a cleaning task that would get rid of the bower_components directory + all polymer-elements in the elements folder that were not vulcanized.
- I also experienced some issues with minifying shim-shadowdom css files. cssmin doesn't seem to recognize the shim-shadowdom attribute and skips it when building. Therefore we had to add a dirty trick to detect the attribute and add it back in the build file.
That's about it really. Also for some reason, modifying css in polymer-elements css files (not included within the index.html) doesn't livereload with grunt serve which is a little frustrating (but I could live with that ;).
But again, we made it and thanks for your great work, and happy to know if there was an easier way to fix our problems!
Cheers,
David