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

Imported css is not transformed #355

Closed
ycmjason opened this issue Jun 5, 2020 · 0 comments
Closed

Imported css is not transformed #355

ycmjason opened this issue Jun 5, 2020 · 0 comments

Comments

@ycmjason
Copy link
Contributor

ycmjason commented Jun 5, 2020

Minimal reproduction
https://github.com/ycmjason/vite-issue-imported-css-not-transformed

The same css code get transformed differently in the "@import"ed css.

index.css

@import './import-me.css';

.a {
  &__nest {
    display: block;
  }
}

import-me.css

.b {
  &__nest {
    display: block;
  }
}

The CSS as I inspected becomes (formatted)

.b {
  &__nest {
    display: block;
  }
}
.a__nest {
  display: block;
}

As we can see import-me.css presumably did not go through postcss.

@github-actions github-actions bot locked and limited conversation to collaborators Jul 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant