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

Breaks compressed CSS in less.js variant #1

Open
thybzi opened this issue May 28, 2015 · 1 comment
Open

Breaks compressed CSS in less.js variant #1

thybzi opened this issue May 28, 2015 · 1 comment

Comments

@thybzi
Copy link
Owner

thybzi commented May 28, 2015

When using lessc width compress: true option,

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

turns into:

/*{magic:dont}

So, all following CSS code becomes commented out.

@thybzi
Copy link
Owner Author

thybzi commented May 28, 2015

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant