Skip to content

Instantly share code, notes, and snippets.

@farism
Created June 19, 2018 22:09
Show Gist options
  • Save farism/479a4bf2e5688da61cf1c79e84d1f4d3 to your computer and use it in GitHub Desktop.
Save farism/479a4bf2e5688da61cf1c79e84d1f4d3 to your computer and use it in GitHub Desktop.
old way
// variables.scss
$color: "red"
// componentA.scss
.componentA {
color: $color;
}
// componentB.scss
.componentB {
color: $color;
}
// manifest.scss
@import variables
@import componentA
@import componentB
// ComponentA.js
import 'manifest.scss' // has both componentA and componentB styles embedded in it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment