Keep SCSS/CSS comments

Hi,

I want to keep license comments inside SCSS/CSS files but it seems that they are removed also if starting with /!*

Here the GitHub issue

Any idea?

Thank you

Hey @DiegoBetto,

the default settings for the css minimizer will discard all comments, but you can change it’s settings to keep comments starting with /*!.

In your bud.config.js you could add something like this to make it work:

  app.minimizers.css.setMinimizerOptions({
    preset: [
      'default',
      {
        discardComments: {
          removeAll: false,
        },
      },
    ],
  });
3 Likes