Skip to content

Breaks compressed CSS in less.js variant #1

Open

Description

@thybzi

When using lessc width compress: true option,

/* {
  magic: dont;
}
/* touch */

turns into:

/*{magic:dont}

So, all following CSS code becomes commented out.

Activity

  1. thybzi commented on May 28, 2015

    @thybzi
    OwnerAuthor

    Possible workaround is replacing the final lines in the file to magic fix from lessphp variant

    Find:

        // Closing the final bracket (do not touch the comment magic!)
        @globalEndString: ~'@{bracketClose}/*';
        @{globalEndString} { magic: dont; } /* touch */
    }
    

    Replace with:

        // Closing the final bracket (do not touch the magic!)
        @globalEndString: ~'@{bracketClose}x:not(x)';
        @{globalEndString} { content: ''; }
    }
    
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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions