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 的文件执行fixSourcePath的时机不对 #36

Open
HexMox opened this issue Aug 9, 2017 · 0 comments
Open

@import 的文件执行fixSourcePath的时机不对 #36

HexMox opened this issue Aug 9, 2017 · 0 comments

Comments

@HexMox
Copy link

HexMox commented Aug 9, 2017

假设现在有以下文件

  • main.scss
@import "./test.scss"
  • test.scss
.test {
  $i: 3;
  @while $i >= 0 {
    &--#{$i} {
      background-image: url("./img/#{$i}.png");
    }

    $i: $i - 1;
  }
}

单文件编译parse阶段的结果,fixSourcePath没有正确fix test.scss文件中的资源,导致后续standard阶段fis没有定位到相应资源。

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

1 participant