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

Lessc to provide preserve comments option #4269

Open
dkaushik95 opened this issue May 3, 2024 · 0 comments
Open

Lessc to provide preserve comments option #4269

dkaushik95 opened this issue May 3, 2024 · 0 comments

Comments

@dkaushik95
Copy link

lessc should provide an option for comments to be preserved. Currently it preserves block comments and removes inline or // comments.

To reproduce:

// Main comment
/** comment with block **/
body {
  width: 100%; // inline comment
}

Current behavior:

/** comment with block **/
body {
  width: 100%;
}

Expected behavior:

/** Main comment **/
/** comment with block **/
body {
  width: 100%; /** inline comment **/
}

Environment information:

  • less version: v4.2.0
  • nodejs version: v18.18.0
  • operating system: macos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant