A
A
avprinciple2019-12-26 12:17:14
BEM
avprinciple, 2019-12-26 12:17:14

How to correctly specify paths for levels - levels in BEM?

There are two folders common and pages , which are located along the path - src/blocks/modules/
I type the command bem create anyBlock -l level1 - I want it to spit out along the path 'src/blocks/modules/common' , now throws it in the root of the project.
For example:

module.exports = {
 root: true,
 levels: [
  { path: 'src/blocks/modules/common' },
  { path: 'src/blocks/modules/pages' }
 ],
  modules: {
      "bem-tools": {
          plugins: {
              create: {
                  techs: ["html", "scss", "js"],
                  levels: {
                    level1: {
                      techs: ['js']
                    },
                    level2: {
                      techs: ['html']
                    }
                  }
              }
          }
      }
  }
};

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question