Closed jamesplease closed 7 years ago
Hi @jmeas,
This could be because you did not set glob
to true
as seen here in the docs.
This option is not ideal though so #14 aims to resolve it.
Thanks for the suggestion, @simonsmith ! That wasn't the issue – I've always been using that option – but I did a fresh install of the repo and wasn't able to reproduce the problem. As expected, I now get a syntax error.
My guess is that a more recent version of postcss-easy-import
may have "accidentally" fixed it, or something.
Thanks again for taking a look, @simonsmith !
Globbing will throw an error when a file contains syntax errors, whereas a regular import does not.
Steps to reproduce:
color #333;
(this example is missing a semicolon)@import './path/to/file';
This is working without throwing any errors for me.
Change the import to be:
@import '/path/**/*';
It should error with:
Correcting the syntax error allows for the glob to work.
I'm OK with syntax errors erroring, but I'd expect the error to relate to syntax errors, rather then ENOENT (which isn't true!)
I am using gulp for this, but I figure the error is likely here. Lmk if you think otherwise and I'll check out the postcss gulp plugin.