Is it possible to configure LESS to remove \"// comments\" when it compiles via JS?
I want to remove them from the outputted less file.
2015-July update: when trying the -x
option as the other answers suggested, I got this warning:
The compress option has been deprecated. We recommend you use a dedicated css minifier, for instance see less-plugin-clean-css.
You can install the plugin with
npm install -g less-plugin-clean-css
Then run lessc
with the --clean-css
argument.