gruntjs / grunt-contrib-stylus

Compile Stylus files to CSS.
http://gruntjs.com/
MIT License
174 stars 70 forks source link

Imported CSS not compressed #123

Closed DJviolin closed 9 years ago

DJviolin commented 9 years ago

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.

sapegin commented 9 years ago

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.

sindresorhus commented 9 years ago

Yup

DJviolin commented 9 years ago

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