0

I have _header.scss, _footer.scss and _main.scss and I want to combine them all into one and generate style.css.

I know it has to do with file watchers, but I haven't been able to figure out how to combine multiple files into one.

TwisterMc
  • 149
  • 9

3 Answers3

2

Create file styles.scss that contain this code

@import 'header';
@import 'main';
@import 'footer';
Slawa Eremin
  • 5,264
  • 18
  • 28
0

It's not a PHPStorm feature, it's a SASS feature.

In style.scss it should start out with:

@import "_header";
@import "_footer";
@import "_main";

PHPStorm doesn't have to combine the files, Scss does.

TwisterMc
  • 149
  • 9
0

@SlawaEremkin above is correct.

Be sure that the import file is named without an underscore (not a SASS partial) otherwise there won't be an output CSS file.

Correct

styles.scss

Incorrect

_styles.scss
Community
  • 1
  • 1
Elise Chant
  • 5,048
  • 3
  • 29
  • 36