olback / es6-css-minify

Easily minify CSS and JavaScript in VS Code
https://marketplace.visualstudio.com/items?itemName=olback.es6-css-minify
MIT License
47 stars 13 forks source link

@import #84

Closed 0arra0 closed 5 years ago

0arra0 commented 5 years ago

Hey! This expansion is really great. Keep it up. I have only one problem in CSS. When I try to include a .css file into another .css file with @import "file.css";, I get the following error: "Ignoring local @import of "file.css" as resource is missing", although it exists. I tried it with "es6-css-minify.css": { "inline": ["all"] } but I still get the error. Am I doing something wrong?

olback commented 5 years ago

Thanks for using it! The error is thrown by clean-css, not the extension itself.

The problem probably occurs because the extension only pass the file content. I think clean-css needs to open the file directly.

Delaney commented 5 years ago

Having the same issue. Is there any solution?

olback commented 5 years ago

Should be fixed now.