Minifying and inlining tool for less

↘锁芯ラ 提交于 2019-12-12 05:38:43

问题


I am looking for a tool to minify a website to one file.
I found inliner but it also inclue my less client script and I would like my less to by compiled to css and be included.

I want to inline javascript, stylsheet and images.

Is there any tool I could use ?


回答1:


A quick search led me to these options:

  • Node-AMS - minify js (using uglifyjs), minify css (using cssmin from yahoo), inline small images in css using base64 data encoding, etc.
  • Bundler - compiles, minifies and combines your websites less, sass, css, coffeescript and js
  • Node-minify - compress javascript and css files with Yui Compressor / Google Closure Compiler / UglifyJS



回答2:


I recommend Opra

*O*ne *P*age to *R*ule them *A*ll

Provides functions for serving and building html-files for single page applications.

Handles such tedious things as concatenating, compressing and compiling files before putting them into the html file.

Supports coffeescript and less out of the box.




回答3:


For the moment, I didn't find a perfect tool, and I don't have more time to spent looking for one.

I think what I was looking for was something like Node-AMS or grunt. Node-AMS seems to be very similar to grunt, but grunt have a bigger community.

I might in the future create some of the tools I need as grunt plugins.



来源:https://stackoverflow.com/questions/11353271/minifying-and-inlining-tool-for-less

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!