gruntjs/grunt-contrib-stylus

Imported CSS not compressed

DJviolin opened this issue · 3 comments

I have this .styl file:

@import '../libs/normalize.css';

body {
  background-colour: #000;
}

It will only compress the body part, the normalize.css stay untouched, but if a rename to normalize.styl, it will compressing without problem.

I’m sure it’s Stylus itself issue, not grunt-contrib-stylus’.

P. S. And I believe it’s better to use specialized CSS minifiers such as csso or clean-css.

Thank you the info, I decided to use cssmin instead.