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

Possibility to use imports processed by other plugins like postcss-scss #13

Open
pedropalau opened this issue May 20, 2020 · 5 comments

Comments

@pedropalau
Copy link

In the following line the @import directive is always treated as a file with the .css extension, but the plugins support now the ".css", ".scss", ".sass" extensions.

file = "#{import}.css"

Should we have the support for other filetypes or maybe allow the use with other plugins like postcss-scss?

@mhanberg
Copy link
Owner

mhanberg commented May 20, 2020

So I think you are bringing up two different things, one of which I think is directly related to this issue.

  1. You noticed that the plugin will only cache .css imports, not scss/sass imports (this is a bug).
  2. You want to be able to use a a different css preprocessor than scss/sass.

Does that sound correct?

@pedropalau
Copy link
Author

Hi @mhanberg, the first option should be the indicated for this case.

@mhanberg
Copy link
Owner

@peterpalau is it correct to assume that you are using @import as provided by Sass, and not provided by postcss-import?

@adamzapasnik
Copy link

@peterpalau is it correct to assume that you are using @import as provided by Sass, and not provided by postcss-import?

Exactly this

@pedropalau
Copy link
Author

@peterpalau is it correct to assume that you are using @import as provided by Sass, and not provided by postcss-import?

Yeap, exactly that, like @DiodonHystrix said.

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