`lessc` should provide an option for comments to be preserved. Currently it preserves block comments and removes inline or `//` comments. **To reproduce:** ```less // Main comment /** comment with block **/ body { width: 100%; // inline comment } ``` **Current behavior:** ```css /** comment with block **/ body { width: 100%; } ``` **Expected behavior:** ```css /** 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`
Activity
matthew-dean commentedon Nov 25, 2024
What is the use case? Using
//has been documented as the way to create discard-able comments in Less since version 1.0.