bem / webpack-bem-loader

Webpack BEM loader
Other
25 stars 14 forks source link

What's naming and levels? #45

Open DimitryDushkin opened 7 years ago

DimitryDushkin commented 7 years ago

Link to 'naming' leads to almost empty page.

Also RFC for

                // levels: {
                //     './pathToBlocks': {
                //         default: true,
                //         scheme: 'nested',
                //         naming: 'origin'
                //     }
                // },

Default? Scheme? Naming?

Thank you.

Yeti-or commented 7 years ago

@DimitryDushkin I feel your pain. We need to improve docs. by the way naming is how you name your files — for example:

block__elem.js
Block_Elem.js
Block-elem.js
and so on

Scheme is how you put your files inside directories:

blocks/__elem/block__elem.js
blocks/block__elem.js
blocks/block@desktop.js
and so on

I think we need to provide more examples ands docs