I tried it, but is not minimize all the html file.  For example the inline
<style> and <javascript> are not minimized and I got this
Suggestions for this page
Minify HTML for the following resources to reduce their size by 9.8KiB (44%
 reduction).

   - Minifying http://localhost:8088/.../core-overlay.html
   <http://localhost:8088/bower_components/core-overlay/core-overlay.html>
could
   save 2.2KiB (45% reduction) after compression. See optimized content
   
<filesystem:chrome-extension://gplegfbjlmmehdoakndmohflojccocli/temporary/core-overlay_2dcec45608ae65b28d50f66dbe29b1e3.html>
   - Minifying http://localhost:8088/.../core-selector.html
   <http://localhost:8088/bower_components/core-selector/core-selector.html>
could
   save 1.6KiB (50% reduction) after compression. See optimized content
   
<filesystem:chrome-extension://gplegfbjlmmehdoakndmohflojccocli/temporary/core-selector_ba7236334fa0b0fb622ccfd7977986f5.html>
   - Minifying http://localhost:8088/.../paper-ripple.html
   <http://localhost:8088/bower_components/paper-ripple/paper-ripple.html>
could
   save 1.1KiB (33% reduction) after compression. See optimized content
   
<filesystem:chrome-extension://gplegfbjlmmehdoakndmohflojccocli/temporary/paper-ripple_0c293713ac6fe5aef7a773a9db98240d.html>
   - Minifying http://localhost:8088/.../core-iconset.html
   <http://localhost:8088/bower_components/core-iconset/core-iconset.html>
could
   save 1.0KiB (56% reduction) after compression. See optimized content
   
<filesystem:chrome-extension://gplegfbjlmmehdoakndmohflojccocli/temporary/core-iconset_34f53a52e3dda465e8866d97661f0449.html>
   - Minifying http://localhost:8088/.../core-a11y-keys.html
   <http://localhost:8088/bower_components/core-a11y-keys/core-a11y-keys.html>
could
   save 918B (41% reduction) after compression. See optimized content
   
<filesystem:chrome-extension://gplegfbjlmmehdoakndmohflojccocli/temporary/core-a11y-keys_fd2118f1a3a62c87494eccdf8165a9a1.html>
   - Minifying http://localhost:8088/.../core-style.html
   <http://localhost:8088/bower_components/core-style/core-style.html> could
   save 809B (35% reduction) after compression. See optimized content
   
<filesystem:chrome-extension://gplegfbjlmmehdoakndmohflojccocli/temporary/core-style_1db54e4462de3672d799b0955f957ef7.html>
   - Minifying http://localhost:8088/.../core-icon.html
   <http://localhost:8088/bower_components/core-icon/core-icon.html> could
   save 602B (47% reduction) after compression. See optimized content
   
<filesystem:chrome-extension://gplegfbjlmmehdoakndmohflojccocli/temporary/core-icon_f09150d5a052720c08d728e067909058.html>
   - Minifying http://localhost:8088/.../paper-dialog.html
   <http://localhost:8088/bower_components/paper-dialog/paper-dialog.html>
could
   save 529B (50% reduction) after compression. See optimized content
   
<filesystem:chrome-extension://gplegfbjlmmehdoakndmohflojccocli/temporary/paper-dialog_e09eca47c173268b0ac143b3ac1f7b39.html>
   - Minifying http://localhost:8088/.../paper-shadow.html
   <http://localhost:8088/bower_components/paper-shadow/paper-shadow.html>
could
   save 527B (38% reduction) after compression. See optimized content
   
<filesystem:chrome-extension://gplegfbjlmmehdoakndmohflojccocli/temporary/paper-shadow_d6008dc7e6251af7a9304f9d78e632a2.html>
   - Minifying http://localhost:8088/.../paper-focusable.html
   <http://localhost:8088/bower_components/paper-focusable/paper-focusable.html>
could
   save 523B (53% reduction) after compression. See optimized content
   
<filesystem:chrome-extension://gplegfbjlmmehdoakndmohflojccocli/temporary/paper-focusable_d325d772109bb6a0e148d47323cb23ea.html>


It means,I can reduce my site in 9Kb aprox only minimizing the inline js
and css

Thanks
Ignacio

On Mon, Oct 27, 2014 at 10:25 PM, Rob Dodson <[email protected]> wrote:

> I should clarify this a bit more. The generator previously used htmlmin
> but it was way too brittle and kept breaking on me. There were some
> elements that would just destroy it. htmlmin is just a bunch of regex
> whereas minifyhtml has an actual html parser that it uses.
>
> On Mon, Oct 27, 2014 at 6:24 PM, Rob Dodson <[email protected]> wrote:
>
>> my advice, don't use htmlmin. Use minifyhtml, see the grunt file for the
>> current generator-polymer (
>> https://github.com/yeoman/generator-polymer/blob/master/app/templates/Gruntfile.js
>> )
>>
>> On Thu, Oct 23, 2014 at 11:27 AM, 'Daniel Freedman' via Polymer <
>> [email protected]> wrote:
>>
>>> collapseBooleanAttributes should be false since "selected" is
>>> considered a boolean attribute:
>>> http://perfectionkills.com/experimenting-with-html-minifier/#collapse_boolean_attributes
>>>
>>> On Thu, Oct 23, 2014 at 11:13 AM, <[email protected]> wrote:
>>>
>>>> Hi,
>>>>
>>>> Yes, sorry.
>>>>
>>>> Im using grunt as following
>>>>
>>>>    htmlmin: {
>>>>       dist: {
>>>>         options: {
>>>>           collapseWhitespace: true,
>>>>           conservativeCollapse: true,
>>>>           collapseBooleanAttributes: true,
>>>>           removeCommentsFromCDATA: true,
>>>>           removeOptionalTags: true,
>>>>           removeComments:true,
>>>>           minifyJS:true,
>>>>           minifyCSS:true
>>>>         },
>>>>         files: [{
>>>>           expand: true,
>>>>           cwd: '<%= yeoman.dist %>',
>>>>           src: ['*.html', 'views/{,*/}*.html'],
>>>>           dest: '<%= yeoman.dist %>'
>>>>         },{
>>>>             expand: true,
>>>>             cwd: '<%= yeoman.dist %>',
>>>>             src: [
>>>>                 'bower_components/{,*/}core-overlay.html',
>>>>                 'bower_components/{,*/}core-selector.html',
>>>>                 'bower_components/{,*/}core-a11y-keys.html',
>>>>                 'bower_components/{,*/}paper-ripple.html',
>>>>                 'bower_components/{,*/}core-style.html',
>>>>                 'bower_components/{,*/}core-iconset.html',
>>>>                 'bower_components/{,*/}core-icons.html',
>>>>                 'bower_components/{,*/}core-transition-css.html',
>>>>                 'bower_components/{,*/}paper-shadow.html',
>>>>                 'bower_components/{,*/}core-icon.html',
>>>>                 'bower_components/{,*/}core-dropdown.html',
>>>>                 /*'bower_components/{,*//*}paper-dialog.html',*/
>>>>                 'bower_components/{,*/}core-selection.html',
>>>>                 'bower_components/{,*/}core-iconset-svg.html',
>>>>                 'bower_components/{,*/}core-collapse.html',
>>>>                 'bower_components/{,*/}core-transition.html',
>>>>                 'bower_components/{,*/}paper-icon-button.html',
>>>>                 'bower_components/{,*/}paper-button.html',
>>>>                 'bower_components/{,*/}core-meta.html',
>>>>                 'bower_components/{,*/}paper-menu-button.html',
>>>>                 'bower_components/{,*/}core-dropdown-overlay.html',
>>>>                 'bower_components/{,*/}paper-focusable.html',
>>>>                 /*'bower_components/{,*//*}paper-radio-button.html',*/
>>>>                 'bower_components/{,*/}core-submenu.html',
>>>>                 /*'bower_components/{,*//*}paper-checkbox.html',*/
>>>>                 /*'bower_components/{,*//*}paper-item.html',*/
>>>>                 'bower_components/{,*/}core-menu.html',
>>>>                 'bower_components/{,*/}layout.html',
>>>>
>>>> 'bower_components/{,*/}paper-menu-button-transition.html',
>>>>                 'bower_components/{,*/}paper-button-base.html',
>>>>                 'bower_components/{,*/}core-overlay-layer.html',
>>>>                 'bower_components/{,*/}paper-radio-group.html',
>>>>                 /*'bower_components/{,*//*}core-item.html',*/
>>>>                 'bower_components/{,*/}core-icons.html',
>>>>                 'bower_components/{,*/}polymer.html',
>>>>                 'bower_components/{,*/}paper-dialog-transition.html',
>>>>                 'bower_components/{,*/}core-key-helper.html',
>>>>                 'bower_components/{,*/}web-animations.html',
>>>>                 /*'bower_components/{,*//*}core-header-panel.html',*/
>>>> //                'bower_components/{,*/}core-drawer-panel.html',
>>>>                 'bower_components/{,*/}core-toolbar.html',
>>>>                 'bower_components/{,*/}core-media-query.html',
>>>>                 /*'bower_components/{,*//*}paper-dropdown-menu.html',*/
>>>>                 'bower_components/{,*/}core-range.html',
>>>>                 'bower_components/{,*/}paper-progress.html'
>>>>                 /*'bower_components/{,*//*}core-input.html',*/
>>>>                 /*'bower_components/{,*//*}paper-input.html'*/],
>>>>             dest: '<%= yeoman.dist %>'
>>>>         }]
>>>>       }
>>>>     }
>>>>
>>>> Just when I copied the text I realize that the issue is with " 
>>>> collapseBooleanAttributes:
>>>> true,"
>>>>
>>>> Sorry for the inconveniences.
>>>>
>>>> Best Regards,
>>>> Ignacio
>>>>
>>>>
>>>> On Thursday, October 23, 2014 2:56:45 PM UTC-3, Eric Bidelman wrote:
>>>>>
>>>>> Can you be more specific on the minifier you're using? It shouldn't
>>>>> trip out attribute values from the markup.
>>>>>
>>>>> On Thu, Oct 23, 2014 at 10:46 AM, <[email protected]> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>>
>>>>>> If my code use some polymer elements that have attribute like
>>>>>> "select='something'" and I try to minify my file, the generate html file 
>>>>>> is
>>>>>> broken. How ?
>>>>>>
>>>>>> If I have
>>>>>>
>>>>>> {code}
>>>>>> <core-selector selected="tab1" horizontal justified layout center>
>>>>>> ....
>>>>>> </core-selector>
>>>>>> {code}
>>>>>>
>>>>>> the minify version is
>>>>>>
>>>>>> {code}
>>>>>> <core-selector selected horizontal justified layout
>>>>>> center>....</core-selector>
>>>>>> {code}
>>>>>>
>>>>>> is there a way to specify not to resolver the select attribute ?
>>>>>> If I modify the polymer element and change selected to
>>>>>> selectedElement or another name it work without problem.
>>>>>>
>>>>>> Today minify my html and polymer elements are crucial because my page
>>>>>> use several polymer elements (almost 8) and without minification the page
>>>>>> is huge and heavy.
>>>>>>
>>>>>> Also...can Polymer provides a minimised version of the components
>>>>>> (css, js, html) ?
>>>>>>
>>>>>> Best regards,
>>>>>> Ignacio
>>>>>>
>>>>>> Follow Polymer on Google+: plus.google.com/107187849809354688692
>>>>>> ---
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "Polymer" group.
>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>> send an email to [email protected].
>>>>>> To view this discussion on the web visit https://groups.google.com/d/
>>>>>> msgid/polymer-dev/b9cd9dd4-8a94-4e7c-b80a-75937e97304a%
>>>>>> 40googlegroups.com
>>>>>> <https://groups.google.com/d/msgid/polymer-dev/b9cd9dd4-8a94-4e7c-b80a-75937e97304a%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>> .
>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>
>>>>>
>>>>>  Follow Polymer on Google+: plus.google.com/107187849809354688692
>>>> ---
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Polymer" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/polymer-dev/63f85554-971f-4979-9d8d-31877c257ed2%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/polymer-dev/63f85554-971f-4979-9d8d-31877c257ed2%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>  Follow Polymer on Google+: plus.google.com/107187849809354688692
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "Polymer" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/polymer-dev/CAAUAVAiDvrmm2G77pXO8VWZ1Zhzw8BGag3yH-cEse7%2BnhWS%2B%2BQ%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/polymer-dev/CAAUAVAiDvrmm2G77pXO8VWZ1Zhzw8BGag3yH-cEse7%2BnhWS%2B%2BQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>

Follow Polymer on Google+: plus.google.com/107187849809354688692
--- 
You received this message because you are subscribed to the Google Groups 
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/polymer-dev/CAGwniLpqJNg-0e%2B7bz59%2BAG7%2BZtNQFHawnOYTdG3wNhcxFH1Hg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to