Skip to content

including empty file #540

Closed
Closed

Description

@Softer

If you @import less file that is empty - lessc stop compiling without any messages.
To prevent this you can add css comment (/* */) before @import line.

lessc 1.1.6 (LESS Compiler) [JavaScript]

Activity

  1. matthew-dean commented on Jan 4, 2012

    @matthew-dean
    Member

    Hmm, still an issue? Seems to have been broken for a few versions.

  2. Softer commented on Jan 4, 2012

    @Softer
    Author

    Yes.
    For example:
    cat 1.less

    h1 {
        color: red;
    }

    2.less
    is empty (0 bytes)

    cat 3.less

    h3
    {
        color: green;
    }

    cat total.less

    @import "1.less";
    @import "2.less";
    @import "3.less";
    

    lessc total.less

    h1 {
      color: red;
    }
    
  3. marklagendijk commented on Feb 11, 2012

    @marklagendijk

    This is still not fixed. Could someone fix this please?

  4. fletom commented on Feb 16, 2012

    @fletom

    Same problem here. For me only the next import after the empty file doesn't get included.

  5. richardhenry commented on May 31, 2012

    @richardhenry

    I have the same issue

  6. lmeurs commented on Jun 30, 2012

    @lmeurs

    Same problem here, thought I was going nuts for a moment. A few newlines do not make any difference, the .less file at least needs something like a comment (// or /**/)...

  7. lukeapage commented on Jul 20, 2012

    @lukeapage
    Member

    duplicate of #179 or #224

  8. lukeapage commented on Aug 12, 2012

    @lukeapage
    Member

    and... I cannot reproduce this in the latest source (possibly fixed by most recent changes)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions