gulpgulp-clean-cssclean-css

How to remove special comments in gulp clean-css?


How to remove special comments in gulp clean-css?

.pipe(cleancss({specialComments: 0}))

seems to have no effect


Solution

  • Assuming you are using the latest version, it should be {level: {1: {specialComments: 0}}}