V
V
Vladislav2015-09-30 16:13:53
BEM
Vladislav, 2015-09-30 16:13:53

What is the correct way to use gulp-bem?

There is an example on github:

var gulp    = require('gulp');
var bem     = require('gulp-bem');
var concat  = require('gulp-concat');

var levels = ['base', 'blocks'];
var tree = bem(levels);

tree.deps('blocks/page')
    .pipe(bem.src('{bem}.css'))
    .pipe(concat('index.css'))
    .pipe(gulp.dest('./dist'));

It is not clear to me what kind of path is specified here tree.deps('blocks/page') and what it is for. Tell me please. Thank you!

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