Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@import (inline) not compressed #309

Open
padsbanger opened this issue Apr 30, 2016 · 2 comments
Open

@import (inline) not compressed #309

padsbanger opened this issue Apr 30, 2016 · 2 comments

Comments

@padsbanger
Copy link

Hello,

When import a css file into less using inline import like this:

@import (inline) './node_modules/normalize.css/normalize.css';

and setting my grunt less task option to compress: true the output is still uncompressed.

Any way to fix this ?

@Kamilius
Copy link

Kamilius commented May 7, 2016

+1.
less file's contents are compressed, but imported css is just inlined, without compression.

@YKWeyer
Copy link

YKWeyer commented Feb 24, 2017

A workaround I found is simply to import the CSS as a less file:

@import (less) './node_modules/normalize.css/normalize.css';

The css file gets minified in the output :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants