postcss / sugarss

Indent-based CSS syntax for PostCSS
MIT License
707 stars 39 forks source link

Bug with commentz #37

Closed jamesplease closed 8 years ago

jamesplease commented 8 years ago

SugarSS/PostCSS doesn't seem to entirely ignore comments. This file works:

@define-mixin ellipsis
  overflow: hidden
  white-space: no-wrap
  text-overflow: ellipsis

whereas this file blows up:

@define-mixin ellipsis
  overflow: hidden
  white-space: no-wrap
  text-overflow: ellipsis

// content-padding()
//   padding 0 15px
//
//   +respond-above($md-screen)
//     padding 0 20px
//

The error is:

[15:03:52] Plumber found unhandled error:
 Error in plugin 'gulp-postcss'
Message:
    ENOENT: no such file or directory, open '/Users/jmeas/WebDev/moolah/client-src/css/mixins.css'
Details:
    errno: -2
    code: ENOENT
    syscall: open
    path: /Users/jmeas/WebDev/moolah/client-src/css/mixins.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/mixins.css'
    at Error (native)

My code to import the file is:

@import './mixins'

I'm using the easy-import plugin to enable postcss to recognize .sss files.

ai commented 8 years ago

Error came from postcss-import, you should ask them (anyway they must fix error message).

/cc @TrySound