Questions tagged [gulpfile]

14 questions
2
votes
0 answers

CssSyntaxError in plugin "gulp-postcss" / You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser

I'm using this plugin for years now, and it's the first time I get this error. I'm working on an old project which i recently upgraded to the latests versions of node & npm, so I'm working with node v16.15.0 and npm v8.5.5. I also upgraded all of my…
emmaYugen
  • 21
  • 1
2
votes
1 answer

How to integrate es6 with gulp-develop-server

I am trying to transfer an old node-express project over to be able to use es6. I have seen many posts about using gulp with es6. Most of them discuss using a syntax like this: const gulp = require("gulp"); const babel =…
Seth Lutske
  • 9,154
  • 5
  • 29
  • 78
1
vote
1 answer

How can I create a subfolder in each folder through Gulp?

Good day! I want to automate the conversion of images to webp format. To avoid doing it manually or via online converters, I decided to use gulp 4 and gulp-webp. This is the structure of nesting folders in my project: I want Gulp, when it finds a…
Alexei
  • 277
  • 1
  • 2
  • 9
1
vote
0 answers

Gulpfile problems

enter image description here enter image description here I got some problems with my gulpfile. it does`t compile my sass files into css an i have an error ( `Error in plugin "gulp-sass" Message: gulp-sass 5 does not have a default Sass compiler;…
SpllIt
  • 11
  • 1
1
vote
0 answers

Gulp and Webpack not async

Why error sync? "Did you forget to signal async completion?" tried (cb) at the beginning and end of function buildScripts, same thing. At this point I pass a training course on frontend development, do everything according to instructions I can also…
AddJs
  • 11
  • 1
0
votes
0 answers

gulp watch task not running even though i am using gulp version4 syntax

i have a problem with gulp watch task , it's not giving any result when i run it , the syntax is correct for gulpv4 ,here is my gulpfile.js /* Variables */ var gulp = require("gulp"); var concat = require("gulp-concat"); var prefix =…
0
votes
0 answers

gulp-sharp-responsive with require

when i try to use require("gulp-sharp-responsive") in gulpfile.js i get an Error: Something went wrong installing the "sharp" module. The specified procedure cannot be found.…
0
votes
0 answers

Gulp Build | Systax Error: Unexpected strict mode reserved word

I am trying to set up one project which is very old. And when I run the gulp build command at my command promt, I encounter that error, and that error does not give me information about where the problem is. I can not upgrade my Node.js version…
bebeko
  • 1
  • 3
0
votes
1 answer

gulp not compiling scss in subfolders

I have the following folder structure: theme assets build css style.css src theme buttons.scss style.scss components hero hero.html hero.scss index.html Any changes in src theme…
Freddy
  • 683
  • 4
  • 35
  • 114
0
votes
1 answer

Error: File not found with singular glob: (if this was purposeful, use `allowEmpty` option)

I am trying to automate a task with watch, in gulp. I am a beginner at this. This is code: const { series, src, dest, watch } = require('gulp'); const sass = require('gulp-sass'); // Función que compila SASS function css( ) { return…
Thiago_
  • 1
  • 2
0
votes
1 answer

gulpfile.js - version 3 to 4 migration

Years back I setup vs code to somewhat replicate the current methods I was using to design my sites (using standalone apps). I decided at the time I would just stick to what I was using. Since those apps are no longer maintained I am coming across…
user756659
  • 3,372
  • 13
  • 55
  • 110
0
votes
1 answer

Migrating from gulp 3.0 to gulp 4.0

Following task doesn't run the copyfonts and imagemin tasks inside the function body. When I call them individually they work fine. gulp.task('build', gulp.series('clean', function(done){ gulp.parallel('copyfonts', 'imagemin'); …
madmax80
  • 171
  • 1
  • 14
0
votes
1 answer

After upgrade to Gulp 4 default task is not detecting default changes for JS & Scss

I upgraded the gulp to 4.0.2 from Gulp version 3. it will not detect changes when the tracked JSa and SCSS file is changed. Gulp version I am using :- CLI version: 2.3.0 Local version: 4.0.2 gulpfile.js 'use strict'; var gulp = require('gulp'), …
NCN
  • 1
0
votes
1 answer

How to make Gulp watch monitoring files?

I have a simple gulpfile.js, that defines only two tasks, buildLess and watchFiles: var gulp = require('gulp'); var less = require('gulp-less'); var watch = require('gulp-watch'); var plumber = require('gulp-plumber'); var filter =…
automatix
  • 14,018
  • 26
  • 105
  • 230