Closed samccone closed 5 years ago
It's going to be fun figuring out the right places for these issues :)
polybuild might be the right place for this one, assuming it sticks around. Of course, it may be easier to collect all the command line related things here and deprecate all the other command line interfaces.
Blocked on #5
I have had a good experience with https://github.com/kangax/html-minifier Seemed to be working with Polymer, using the following configuration:
htmlmin({
collapseWhitespace: true,
removeComments: true,
removeAttributeQuotes: true,
removeRedundantAttributes: true,
useShortDoctype: true,
removeEmptyAttributes: true,
removeScriptTypeAttributes: true,
removeStyleLinkTypeAttributes: true,
removeOptionalTags: true
})
(see https://github.com/AreaFiftyLAN/lancie-frontend/blob/master/gulpfile.js#L107-L117)
Thanks for the info @TimvdLippe! We'll be adding minification very soon.
ref: https://github.com/PolymerElements/polymer-starter-kit/pull/486#issue-115633232 https://github.com/PolymerElements/polymer-starter-kit/issues/564 https://github.com/PolymerElements/polymer-starter-kit/pull/565 https://github.com/Polymer/vulcanize/issues/283