-
Notifications
You must be signed in to change notification settings - Fork 41
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
Source map option not working #6
Comments
The plugin has no such option. To get the sourcemap you need to use this option for the |
Thanks, got it working now - the confusion came from the deprecation warning I got after upgrading lessc
So I went and checked out clean-css and their examples (which are all for the CLI) made it look like this plugin was acting as a wrapper to the clean-css cli command as clean-css itself has a --source-map and --output option :-) Thanks for the quick response - all good now! |
Hi bdgeorge, |
I'm finding that the --source-map option doesn't work, I'm getting the following error:
This is after doing
npm install -g less
thennpm install -g less-plugin-clean-css
If I install clean-css and run that alone it works as expected, so
cleancss tmp.css --source-map --output tmp.min.css
generates a cleaned file and the map.However running
lessc tmp.less tmp.css --clean-css="--source-map --output tmp.min.css"
results in the error code given above.Other options, eg
lessc tmp.less tmp.css --clean-css="--s1"
work fine.I'm using [email protected] and [email protected]
The text was updated successfully, but these errors were encountered: