In our app, we are currently compiling .less files into 1 .css file. We'd like to use postcss-bem-linter and define where a component begins and ends via comments in our .less and have postcss-bem-linter run on this one file.
postcss-bem-linter already has support for defining a component via /** @define MyComponent */
Is it possible to add the ability to comment that a component's CSS has ended, /** @end MyComponent */
We are thinking something like:
my-compiled-file.css
`/** @define foo */`
.foo {
...
}
.foo--bar {
...
}
/** @end foo */
`/** @define baz */`
.baz {
...
}
.baz--bar {
...
}
/** @end baz */