<li><p><aclass="github-button"href="https://github.com/vesuvium/lektor-htmlmin"data-icon="octicon-star"data-size="large"data-show-count="true"aria-label="Star lektor-htmlmin on GitHub"target="_blank">Star</a></p></li>
lektor-htmlmin<br>--------------<br>|Pypi|<br><br>HTML minifier for Lektor that automatically minifies generated .html files.<br><br>Uses `htmlmin <https://github.com/mankyd/htmlmin>`_ and looks for .html files,<br>minifying them as part of the build process.<br><br>Installing<br>##########<br><br>You can install the plugin with Lektor's installer::<br><br> lektor plugins add lektor-htmlmin<br><br><br>Or by hand, adding the plugin to the packages section in your lektorproject file::<br><br> [packages]<br> lektor-htmlmin = 1.0<br><br><br>Usage<br>#####<br><br>To enable minification, pass the `htmlmin` flag when starting the development<br>server or when running a build::<br><br> lektor build -O my_build_folder -f htmlmin<br><br><br>When the flag is present, htmlmin will overwrite all HTML files in the output<br>directory with their minified counterparts.<br><br>*Note:* The htmlmin plugin currently minifies every file in the project after a build.<br>Not just files that have been changed. This should have no ill effects, but<br>might increase build times if there are many files to minify.<br><br><br>.. |Pypi| image:: https://img.shields.io/pypi/v/lektor-htmlmin.svg?maxAge=3600&style=flat-square<br> :target: https://pypi.python.org/pypi/efesto
Please enable JavaScript to view the <ahref="https://disqus.com/?ref_noscript"
rel="nofollow">comments powered by Disqus.</a>
</noscript>
</div>
</div>
</div>
</div>
</div>
</div>
<divclass="bottomsummary">
<divclass="container">
</div>
</div>
<footer>
<divclass="container">
<divclass="row">
<divclass="col-sm-4 icon-bar">
<ahref="https://github.com/lektor/lektor/"title="Lektor on GitHub"
><iclass="fa fa-github"></i></a>
<ahref="https://github.com/lektor/lektor/issues/"title="Report Issues for Lektor"
><iclass="fa fa-bug"></i></a>
<ahref="https://twitter.com/getlektor"title="Find Lektor on Twitter"
><iclass="fa fa-twitter"></i></a>
<ahref="https://gitter.im/lektor/lektor"title="Chat on Gitter"
><iclass="fa fa-comment"></i></a>
<ahref="https://github.com/lektor/lektor-website/tree/master/content/plugins/lektor-htmlmin/contents.lr"title="View source for this page"><iclass="fa fa-code"></i></a>
</div>
<divclass="col-sm-8">
<ahref="../../license/">License & Copyright</a> •
<ahref="../../contact/">Contact</a> •
Made with <iclass="fa fa-fw fa-heart"title="Heart"><spanhidden>Heart</span></i> in Carinthia