Open Yankovsky opened 5 years ago
I thought that glob pattern resolution works by first obtaining all files matching pattern and then processing them through usual resolution algorithm.
Funny thing is postcss-import pre glob removal didn't have that problem.
Could you describe imports resolution algo?
I have following files: src/my.css
src/vars.css
and index.css
When I run
postcss index.css
I get following result:If I change the name of vars.css file to something like avars.css (which comes before my.css alphabetically) or if I use specific path in index.css instead of glob everything works as expected and the result is:
I think it is a bug and dependencies resolution shouldn't be broken by using globs.