Questions tagged as 'gulpfile'

1
answer

Gulp Watch JS infinite loop

I'm a new Gulp student, and I made this watch so if my javascripts files change, it runs build-js . But when I run Gulp, it compiles everything right but it keeps running build-js in an infinite loop. What did I do wrong?...
asked by 06.12.2017 / 19:31
1
answer

how to solve the problem Task 'scripts' is not in your gulpfile

This is my gulpfile: var gulp = require('gulp'); var sass = require('gulp-sass'); var watch = require('gulp-watch'); var babel = require('gulp-babel'); var minify = require('gulp-minify'); // task para o sass gulp.task('sass', function() {...
asked by 09.09.2017 / 12:56
1
answer

Condition to ignore files ".min.js"

I have the following task in my gulpfile.js that renames files .js to .min.js : gulp.task('js', function () { return gulp.src(paths.scripts.src) .pipe(gulpif(prod, uglify())) .pipe(rename({ suffix: '.min' }))...
asked by 12.11.2017 / 23:40
0
answers

Error to run task with gulp 4.0.0

I'm having trouble running the below task with gulp in version 4.0. The problem occurs when I'm trying to run dependencies. Would anyone know why? const gulp = require("gulp"), imagemin = require("gulp-imagemin"), clean = r...
asked by 13.12.2018 / 21:59
0
answers

I can not run the gulp command

I installed gulp globally and tb gulp-cli. however when I run the gulp command it displays the following error:     
asked by 27.06.2018 / 05:19
0
answers

Gulp sass is not a function

I am creating a project in CodeIgniter 3 with HMVC, where the assets will be inside the module folders. I created a gulpfile, I installed all modules by npm, but gulp-sass, to compile the SCSS files is not working. The code is as follows:...
asked by 10.05.2018 / 14:44