Answer the question
In order to leave comments, you need to log in
How to add normalize.css to bem ENB project?
Hello!
Mastering enb. I want to add normalize to css. I install it via bower. I create a desctop.blocks/normalize block. In desctop.blocks/normalize/normalize.css I write the import:
@import url(../../libs/normalize.css/normalize.css);
({
tech : 'tmpl-spec.js',
mustDeps: { block: 'normalize' },
shouldDeps : {
elems : ['conditional-comment']
}
})
Answer the question
In order to leave comments, you need to log in
In the above example, the indication of dependencies for the tmpl-spec.js technology is used for template tests, for this reason { block: 'normalize' }
it does not get into css during assembly in order to connect the styles and scripts of the desctop.blocks/page/page.deps.js blocks to the project :
[{
mustDeps: { block: 'normalize' },
}]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question