Minifying and inlining tool for less

2019-08-16 08:40发布

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 ?

标签: less minify
3条回答
▲ chillily
2楼-- · 2019-08-16 09:20

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
查看更多
3楼-- · 2019-08-16 09:23

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.

查看更多
ら.Afraid
4楼-- · 2019-08-16 09:31

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.

查看更多
登录 后发表回答