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

Expected behavior, or not? #8

Closed
jamesplease opened this issue Jul 3, 2016 · 1 comment
Closed

Expected behavior, or not? #8

jamesplease opened this issue Jul 3, 2016 · 1 comment

Comments

@jamesplease
Copy link

jamesplease commented Jul 3, 2016

If I use this plugin like so:

.pipe($.postcss([
    precss({import: {prefix: ''}}),
    easyImport({extensions: ['.sss']})
  ], {parser: sugarss}))

should I expect

@import 'my-file' to resolve to my-file.sss? It's only working if I do @import 'my-file.sss'. If I omit the extension, I get this error:

Message:
    ENOENT: no such file or directory, open '/Users/jmeas/WebDev/moolah/client-src/css/my-file.css'
Details:
    errno: -2
    code: ENOENT
    syscall: open
    path: /Users/jmeas/WebDev/moolah/client-src/css/my-file.css
    fileName: /Users/jmeas/WebDev/moolah/client-src/css/index.sss
Stack:
Error: ENOENT: no such file or directory, open '/Users/jmeas/WebDev/moolah/client-src/css/my-file.css'
    at Error (native)

If I turn off this plugin, PostCSS works exactly the same. Am I misconfiguring this, or something? 😕

@jamesplease
Copy link
Author

Rearranging the order of the pluginz fixed it

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