CSS compilation / compression and source maps v3

Does anyone know a tool that will compress / minimize / merge my CSS files and produce a valid source map version 3 that can be used with Chrome? Preferably NodeJS tool.

The compressors that I know for Node are pure-css, csso, css-condense (uses css-parse, but chokes on bootstrap.css) and cssmin (the port is from YUI, but does not have a CLI). None of them have source file support.

I think that SASS (Ruby) and, possibly, Less.js are working on implementations, but they are preprocessing tools.

+4
source share
3 answers

mincer-sourcemap seems to be able to generate CSS source maps.

+1
source

mincer Activation of the pipeline version 1.0.0+ comes with support for source maps. This ruby ​​asterisk port port on node.js. The latest engine status is on the wiki .

For CSS, right now you can use LESS + AutoPrefixer + CssWring . SASS also has sourcemaps support, but it is not yet accepted for the meat grinder.

In the near future, Stylus should also add support for source maps.

+1
source

I use https://ajaxmin.codeplex.com/ , which works just fine, also on boot.

It can minimize JS and CSS. Processes source maps and file linking.

A lot of options, but I use several xml files to determine what should be minimized and what should be included. You can also just use the command line for this.

My use was compilation time. If your lead time, you need to go with something else.

0
source

All Articles