-
Notifications
You must be signed in to change notification settings - Fork 116
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
Add test for nested import ordering #169
Conversation
@TrySound do you plan to have a look to this (since you introduced the responsibles changes)? |
Sure. Will look tomorrow. |
I understand the problem. It's all about skipping duplicates. If we want pure duplcations resolving we should do it after building tree. But it's very massive operation. But if current behaviour creates issues should we implement? |
Probably |
I'd like to advocate for 'yes' to fix this :) |
@adam-h Okay. I need some time. |
@TrySound is there an update / workaround for this issue? It's preventing us from upgrading to v8 of postcss-import. Thanks. |
+1 |
@jonny-improbable I only have a very hacky workaround, which only works for my codebase without modifications. In my case this error results in variables not getting replaced in the resulting CSS. So I created a grunt-exec task to re-build the CSS until there are no variables output. exec:
css_hack:
command: ->
variable_re = /(\$base-font|\$keyword-highlight|\$emphasis-font)/g
match = variable_re.exec(grunt.file.read("path/to/output.css"))
if(match)
"./node_modules/.bin/grunt css"
else
"echo 'OK'" Then made by |
@TrySound any clue? |
@MoOx Sorry, don't have a time for realization. But I have some ideas. Will try them asap. |
@adam-h what do you think about v7 behavior? We might consider reverting to this version if fix is not doable nor easy. New v8 is really weird and seems more complicated to me. |
@TrySound are your ideas still around? :D |
@MoOx Can't easily try out v7, as my codebase is using the updated |
@TrySound Did you get anywhere on this? I may have some time in the coming weeks to have a poke at it |
Same problem here. Considering that I don't need any new feature introduced in v8, would reverting to v7 be a viable option? Is it fully compatibile with the current version of |
Totally. In v8, I think there is a change with import scoped by media queries, but nobody use this anyway. Btw, if I don't get any update within a month or so, I will revert to v7 implementation (because I don't have time to maintain/fix v8). This issue has been open for too long. |
FYI #210 |
So this If so, I don't see any good use cases for it (in my workflow). |
It's not v8 only, but I think in some use cases, nested import with mq where failing. @TrySound can say more about this. |
@MoOx any update on reverting to v7? |
Merging to move forward with this mess |
@MoOx See #168 (comment) |
From #168