Answer the question
In order to leave comments, you need to log in
What is the easiest layout tool for the BEM methodology, why does gulp-bem swear?
I decided to try bem , looked at bem-tools, decided that it was too tricky, I needed something simpler, settled on gulp-bem :
C:\Users\krll\projects\holiday>node_modules\.bin\gulp
C:\Users\krll\projects\holiday\gulpfile.js:8
deps('blocks/page')
^
TypeError: object is not a function
at Object.<anonymous> (C:\Users\krll\projects\holiday\gulpfile.js:8:1)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Liftoff.handleArguments (C:\Users\krll\projects\holiday\node_modules\gulp\bin\gulp.js:116:3)
at Liftoff.<anonymous> (C:\Users\krll\projects\holiday\node_modules\gulp\node_modules\liftoff\index.js:181:16)
at module.exports (C:\Users\krll\projects\holiday\node_modules\gulp\node_modules\liftoff\node_modules\flagged-respawn\index.js:17:3)
C:\Users\krll\projects\holiday>
var gulp = require('gulp');
var bem = require('gulp-bem');
var concat = require('gulp-concat');
var levels = ['base', 'blocks']
var deps = bem(levels);
deps('blocks/page')
.pipe(bem.src('{bem}.css'))
.pipe(concat('index.css'))
.pipe(gulp.dest('./dist'));
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question