R
R
Roman Makarov2015-10-16 23:30:46
gulp.js
Roman Makarov, 2015-10-16 23:30:46

What's wrong with Gulp.js?

var gulp = require('gulp'),
    concatCss = require('gulp-concat-css'),
    minifyCss = require('gulp-minify-css'),
    rename    = require('gulp-rename');


gulp.task('main-layout-1-css', function () {
    return gulp.src([
        'static/css/base.css',
        'static/css/bootstrap.css',
        'static/css/font-awesome.min.css',
        'static/css/bootstrap-social.css',
        'static/css/all.css',
        'static/css/layout.css'
        ])
        .pipe(concatCss('main-layout-1.css'))
        .pipe(minifyCss())
        .pipe(rename('main-layout-1.min.css'))
        .pipe(gulp.dest('assets/css/'));
});

when trying to execute a task, it gives an error
events.js: 141
throw er; // Unhandled 'error' event
^
Error: undefined:910:28: missing '}'
at error (D:\smth\Work\pokerWU\node_modules\gulp-concat-css\node_modules\rework\node_modules\css\lib\ parse\index.js:62:15)
at declarations (D:\smth\Work\pokerWU\node_modules\gulp-concat-css\node_modules\rework\node_modules\css\lib\parse\index.js:259:26)
at rule (D:\smth\Work\pokerWU\node_modules\gulp-concat-css\node_modules\rework\node_modules\css\lib\parse\index.js:560:21)
at rules (D:\smth\Work\ pokerWU\node_modules\gulp-concat-css\node_modules\rework\node_modules\css\lib\parse\index.js:117:70)
at stylesheet (D:\smth\Work\pokerWU\node_modules\gulp-concat-css\node_modules\rework\node_modules\css\lib\parse\index.js:81:21)
at module.exports (D:\smth\ Work\pokerWU\node_modules\gulp-concat-css\node_modules\rework\node_modules\css\lib\parse\index.js:564:20)
at rework (D:\smth\Work\pokerWU\node_modules\gulp-concat- css\node_modules\rework\index.js:27:21)
at DestroyableTransform._transform (D:\smth\Work\pokerWU\node_modules\gulp-concat-css\index.js:82:22)
at DestroyableTransform.Transform._read (D:\smth\Work\pokerWU\node_modules\gulp-concat-css\node_modules\through2\node_modules\readable-stream\lib\_stream_transform.js:184:10)
at DestroyableTransform.Transform._write (D:\smth\Work\pokerWU\node_modules\gulp-concat-css\node_modules\through2\node_modules\readable-stream\lib\_stream_transform.js:172:12)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Makarov, 2015-10-16
@rmakarov

I found an error in css
and had to look for it in 2k lines. Moreover, phpstorm believed that everything was fine here. Can gulp be asked to ignore this? Or pointing out exactly where the failure is. Because "Error: undefined:910:28: missing '}'" points to a position in the build file, not the source.
Solution 1)
Plumber plugin

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question