suitcss / preprocessor

A future-facing CSS preprocessor (used by SUIT CSS)
http://suitcss.github.io
MIT License
135 stars 25 forks source link

Fail on empty import #7

Closed rtm closed 8 years ago

rtm commented 9 years ago

suitcss fails on an empty import file, with the backtrace

error · TypeError: Cannot read property 'comment' of undefined
    ·   at conformance (usr/local/npm/node_modules/suitcss-preprocessor/node_modules/rework-suit/node_modules/rework-suit-conformance/index.js:29:36)

etc. Is this expected behavior?

Can be reproduced with suitcss foo.css, where foo.css is @import "./bar/css"; and bar.css is an empty file (zero-length).