Questions tagged [csso]

CSSO (CSS Optimizer) is a CSS minimizer. In addition to usual minification techniques it can perform structural optimization of CSS files, resulting in smaller file size compared to other minifiers.

Description

CSSO (CSS Optimizer) is a CSS minimizer. In addition to usual minification techniques it can perform structural optimization of CSS files, resulting in smaller file size compared to other minifiers.

References

https://github.com/css/csso

7 questions
3
votes
1 answer

CSSO npm not working while others are

I’m new to Node.js & npm and am trying to figure out why the uglifyjs module is working while the csso module is not. i recently moved my global install to following location /Users/myname/.node_modules_global/bin/npm via this tutorial’s…
TopTomato
  • 587
  • 3
  • 8
  • 23
1
vote
2 answers

CSSO Gulp and WordPress Comments

I am using Gulp CSSO to tidy up my CSS in WordPress but it deletes my comments, more specifically it deletes the theme meta data. Is there any way to get around this? Perhaps insert the theme meta data after I have run CSSO?
ARH
  • 51
  • 3
1
vote
1 answer

KryzhanovskyCssMinifier doesn't work with MsieJsEngine but does with V8JsEngine

I am using the latest BundleTransformer for ASP.NET. I have an extremely simple bundle file with one LESS file: var cssBundle = new CustomStyleBundle("~/Content/css/bundle").Include( …
Simon_Weaver
  • 140,023
  • 84
  • 646
  • 689
0
votes
0 answers

Is there an option to minify CSS and JS in PhpStorm only if minified file already exists?

On Visual Studio Code, there is an option to trigger the minify extension only if the minified file already exists (extension JS & CSS Minifier). But in PhpStorm I couldn't find something like this using the File Watchers UglifyJS and CSSO. Is…
0
votes
1 answer

Subprocess.check_output does nothing for node.js on windows?

I've got a strange problem with my automated minify tool. I had to replace yuicompressor with csso, since yuicompressor hasn't updated since 2013 and has many bugs with newer css selectors. This has increased the complexity (as in amount of…
aphid
  • 1,135
  • 7
  • 20
0
votes
2 answers

CSSO + ExtractTextPlugin in webpack not restructuring extracted page

I'm trying to create a scaffolding for my react project and learn webpack in the process. I've been trying to get my css modularized in their own component folders and get them extracted into a single styles.css file in the build folder. The…
mrtiev
  • 43
  • 1
  • 2
  • 4
0
votes
0 answers

CSS minifier error: CSSO & Webpack

I'm getting the following error as I bundle my js and css with Webpack. ERROR in Cannot find module './prepare/AppActions.js' @ ./components/filename.css 4:14-84 This error occurs no matter which css file I import, which makes me think it's caused…
Jason O.
  • 3,168
  • 6
  • 33
  • 72