How to compile related scss file using Live Sass Compiler VS Code?

Do two thinks:

  1. Every included file like base.scss must start with a underscore => _base.scss

  2. edit your settings.json and add:

    "liveSassCompile.settings.includeItems": ["./path/to/your/main.scss"]

If you now change _base.scss live sass compiler will compile main.scss! :)

Hope it help!

  • Tipp: To get the correct path, right click on the file in vsCode and copy relative path.

Last updated