less.js
less.js copied to clipboard
Lessc to provide preserve comments option
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:
lessversion:v4.2.0nodejsversion:v18.18.0operating system:macos