# Keep SCSS/CSS comments

**URL:** https://discourse.roots.io/t/keep-scss-css-comments/28015
**Category:** bud
**Tags:** sass, webpack, sage10
**Created:** 2024-09-23T07:16:40Z
**Posts:** 2

## Post 1 by @DiegoBetto — 2024-09-23T07:16:40Z

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

> <https://github.com/roots/sage/issues/3197>
>
> ### Version
> 
> 6.20.0
> 
> ### What did you expect to happen?
> 
> Keep license comments w…ithin SCSS/CSS files beginning with `/*!`.
> 
> ### What actually happens?
> 
> Comments are removed
> 
> ### Steps to reproduce
> 
> - Add a comment inside a SCSS file using `/*!` format
> - Run `yarn build`
> 
> 
> ### System info
> 
> Ubuntu 24
> 
> ### Log output
> 
> _No response_
> 
> ### Please confirm this isn't a support request.
> 
> Yes

Any idea?

Thank you

---

## Post 2 by @stefanreinprecht — 2024-09-23T17:58:42Z

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,
        },
      },
    ],
  });
```
