-
Notifications
You must be signed in to change notification settings - Fork 2
Allow for users to specify element and modifier delimiters. #2
Comments
@SethTompkins in fact this package represents traditional syntax, but what you mention is Harry Roberts' one. See https://en.bem.info/method/naming-convention/ |
@SethTompkins you can find useful bem-cn and some other similar projects |
hi. first of all, "traditional" BEM syntax delimiters are underscores, everything else - BEM variations. the only (pretty) way to implement this without headaches is to use some special |
@deepsweet I like idea with |
webpack config example: plugins: [
new webpack.DefinePlugin({
'process.env': {
REBEM_MOD_DELIM: JSON.stringify('--'),
REBEM_ELEM_DELIM: JSON.stringify('~~')
}
})
] |
Sorry for my presumptuousness, and thanks for pointing me in the right direction. |
* delimeters: ➕ add `REBEM_MOD_DELIM` and `REBEM_ELEM_DELIM` env vars (close #2)
First off, great package :)
The only thing that keeps me from using this is the hard-coded
_
used to delimit modifiers. Traditional BEM syntax has modifiers delimited by two dashes,--
.In order to cater to more BEM flavors, it would be great to be able to set custom delimiters for the package.
The text was updated successfully, but these errors were encountered: