Re:Brackets, a code editor
by myhf on Friday February 07, 2014 @12:35AM
(#7194966)
Preprocessors aren't incompatible with components. I usually structure my frontend code like
And then the style file for a component is completely scoped to that component's main class:
The build script can handle each component separately and stitch the results together. Just because SASS/compass encourages a monolithic style doesn't mean it's necessary.
[ Parent
| on HN ]
Re:Brackets, a code editor
by ianstormtaylor on Wednesday February 12, 2014 @12:05AM
(#7222613)
Yeah, the problem comes in when you want to share pre-processor variables between your components.