Skip to main content
The 2026 Annual Developer Survey is live— take the Survey today!

Question list filters

Filter by
Sorted by
Tagged with
Filter by Employee ID
Score of 0
0 answers
56 views

in my first post, I was building gulp, but something happened that I didn't understand: This is a bug : [21:36:37] Using gulpfile I:\20250820\mvc\gulpfile.js [21:36:37] Starting 'build'... [21:36:37] ...
Score of 1
1 answer
144 views

I am attempting to build a sass file that imports bootstrap from the node_modules folder. I have added the bootstrap source folder to the includePath list. But for some reason, the gulp compiler is ...
Score of 0
1 answer
115 views

I'm trying to develop my first SPFx (1.21.1) web part using Vue (3.5.22) without success. This is my package.json: { "name": "spfx", "version": "0.0.1", &...
Score of 1
0 answers
99 views

I have an existing Express project where I'd like to add css modules locally scoped to my react components. The project relies on a gulp build script. I have recently added react to the project to ...
Score of 1
0 answers
69 views

I'm running into a recurring problem after running npx gulp to initiate the build process (scss -> css builds). After each initialisation run,Git shows that a huge number of .css.map files have ...
Score of 0
0 answers
82 views

Unfortunately project page doesn't have documentation about how to connect html-minifier-next to gulp. Search showed me one solution. I tried it. ... const htmlMinify = require('html-minifier-next'); ...
Score of 1
1 answer
58 views

The error in child process not always means that something fatal occurred. For example in "vue-tsc" case, if there will be some TypeScript errors, the error parameter will be not null while &...
Score of 0
0 answers
135 views

I have upgraded many components of my dev environment and I am now getting the following error when trying to compile my app. Everything was running fine before I started the upgrades, my app would ...
Score of 1
1 answer
393 views

I have used this code on other projects with no problem. For some reason, when running the clean_make_css, it comes back with an error autoprefixer is not a function I added a checker, checkFunc, ...
Score of 0
1 answer
67 views

I’m reaching out for some assistance regarding an issue I’ve encountered with my Gulpfile setup. I’ve configured the browser sync option in the file, and while changes are correctly getting reflected ...
Score of -1
1 answer
34 views

Within my gulpfile.js file, after my tasks run I would like to remove all my .css files from my pub/ directory after they have landed there. This is my most modern attempt but my files never get ...
Score of 2
0 answers
39 views

I am struggling with a Gulp Task and what it is doing. Let me start with the first task: gulp.task('html-template:join', (cb) => { gulp.src('./src/template-data/**/*.json') .pipe(...
Score of 1
2 answers
328 views

I'm encountering a persistent issue where Sass is unable to resolve the import path for Bootstrap, even in a minimal test project. I'm using gulp-sass with Dart Sass. Here's the problem: I'm trying to ...
Score of 0
1 answer
236 views

I’m using Gulp v5.0 to compile, minify, and clean the CSS for my application. I've migrated from CommonJS to ES Modules (ESM) in my Gulp setup. There’s a custom component (maintained by another team) ...
Score of 1
1 answer
59 views

I am running my gulp task for compiling my scss files and then convert them to css. The scss files are getting compiled correctly in the cli. But the css files are not getting saved. Below is my scss ...
Score of 0
0 answers
33 views

I've just discovered that Gulp is refusing to copy the new version of some font files in one of my projects. I have something like below: /assets /classes /dist /lib /sass mainfile.php otherfile.php ...
Score of 0
0 answers
72 views

I want to extract data from a PDF file in my plugin and use the data for information. I am trying with pdfjs-dist, but it breaks my gulp-building process, showing pdf-dist as an external dependency. ...
Score of 0
1 answer
117 views

[13:04:33] Finished 'deploy_resource_packs' after 10 ms [13:04:33] 'watch_scripts' errored after 2.21 s [13:04:33] Error: EPERM: operation not permitted, watch at FSWatcher._handle.onchange (node:...
Score of 0
0 answers
78 views

I'm new to working with javascript and I've been requested to add my project to a SharePoint. After making the changes, I save all the files in VSCode and then use Ctrl+C in the terminal to stop the ...
Score of 0
0 answers
458 views

Anyone's help appreciated on this. I've already had four front end developers trying to work this one out. No joy. I have an environment set up, highly adapted from this one: https://github.com/...
Score of 1
0 answers
25 views

I get the error below when I run gulp bgrok-serve >>gulp ngrok-serve --debug [16:34:54] Found additional Yo Teams plugin: yoteams-deploy [16:34:54] Using gulpfile ~\OneDrive - HEGELMAT\Desktop\...
Score of 0
1 answer
133 views

I have a problem with Gulp because it doesn't compile if there is more than one specific element in the SRC. I need multiple files to be compiled on the JS, PHP and IMG. Node: 23.1.0 NPM: 10.9.1 Gulp: ...
Score of 0
2 answers
460 views

I use [email protected] , [email protected] on Mac. The gulp task are as follows. import { src, dest, series, watch } from 'gulp'; import * as dartSass from 'sass'; import gulpSass from 'gulp-sass'; const ...
Score of 2
1 answer
1380 views

As many others, I've recently begun to get this error whenever I compile my SASS. Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0. No matter what I do, I ...
Score of 1
1 answer
52 views

I have an old project and have to add a filter to remove an item from the array of objects if the condition is true. I am getting the below error when trying to run gulp build. [14:44:03] Using ...
Score of -2
1 answer
116 views

Now that Deno 2 supports npm, I'm trying to use gulp in Deno 2. But I'm getting odd behavior that's causing me to doubt this will work. I'll provide the list of steps I used later, but first, here's ...
Score of 1
1 answer
51 views

I am migrating an old gulp project over to webpack, and wondered if it was possible to make a webpack project that doesn't require the entry and output options, I have a series of tasks that need ...
Score of 1
1 answer
75 views

.pipe(sassGlob()) .pipe(sass(["last 2 version", "> 2%"])) .pipe(autoprefixer()) .pipe(cssbeautify()) .pipe(gulp.dest("./dist/assets/css/")) .pipe(cssnano()) .pipe( rename({ suffix: "....
Score of 2
2 answers
5214 views

My current installation is the follow: Node - v20.18.0 Gulp - v5.0.0 Gulp-Sass - v5.1.0 Sass - v1.80.6 My gulpfile.js: const gulp = require("gulp"); const sass = require("gulp-sass&...
Score of 0
0 answers
45 views

I got a great portfolio template from Start Bootstrap, but I ran into an issue installing dependencies. There is no node_modules folder after running npm i. This is my package.json: { "title&...
Score of 0
0 answers
28 views

I'm a newbie to gulp. So this question might be obvious. var gulp = require('gulp'); var shell = require('gulp-shell'); var nodemon = require('gulp-nodemon'); var fs = require('fs'); fs.readdirSync(...
Score of -1
2 answers
119 views

There is a problem with npm library for html minify. I downloaded and declared a library import htmlmin from 'html-minifier'; but when i try to run a gulp task export const html = () => { ...
Score of 1
0 answers
40 views

I'm working on a project, a WordPress plugin for the Divi theme, with the following file structure: root gulpfile.js package.json /src/divi4 gulpfile.js package.json /src/divi5 gulpfile.js package....
Score of 1
1 answer
361 views

I am attempting to rebuild my gulpfile.js after upgrading to Gulp 5 and the most recent stable version of Node.js (20.11.1). The gulpfile below works just fine with Node.js version 16.14.0, but is ...
Score of 0
1 answer
266 views

I'm using gulp-file-include to build my HTML files and I'm running into an issue with passing variables between nested include files. File Structure: . ├── index.html └── template-parts └── common ...
Score of 0
1 answer
56 views

This task work ok. I use path ".wwwroot/css/site.min.css" var gulp = require("gulp"); const fs = require('fs').promises; gulp.task('clean', async function (done) { try { ...
Score of 1
0 answers
131 views

I am currently using Lit to learn more about custom web components and I am trying to use .scss files to render an style for my components; but I can't find a way to compile the scss files in a way ...
Score of 2
1 answer
284 views

I have some images in my project that I want to compress them using gulp But first I want to move them to the dist folder so I made this simple task function test(){ return src("src/images/*&...
Score of 1
0 answers
109 views

I was using DOMPurify 2.3.10 with Gulp for minifying files, and everything worked fine. However, after upgrading to versions 3.1.6 or 2.4.9, I'm getting the following error: Uncaught SyntaxError: ...
Score of 0
1 answer
89 views

I'm facing an issue with viewing the svg elements in production mode, it worked totally fine in development mode (localhost). Me and my team are suspecting it is the issue with the gulp. <img src=&...
Score of 5
1 answer
1330 views

I am using Bootstrap 5.3.3 in my project and compile using gulp.js I see warning on every save change. below message see on terminal. Deprecation Warning: Sass's behavior for declarations that appear ...
Score of 0
0 answers
289 views

I am using gulp to simply clone a src folder (jpeg images only). I used the official documentation -> (https://www.npmjs.com/package/gulp-scale-images) When I enter gulp in my terminal to run my ...
Score of 1
0 answers
724 views

I want to create a Gulp task that generates a file with my site's Critical CSS. Penthouse seems to fit exactly what I need. I can achieve generating the Critical CSS file with http://google.com, and ...
Score of 3
1 answer
840 views

I am trying to setup up the imagemin package to run through gulp. I seem to have got the package running, however there are a number of unexplained issues: const imgSRC = 'images/*'; const imgDIST = '....
Score of 0
2 answers
162 views

I´m trying to copy some files between folders without success. This is my program: const gulp = require('gulp'); const using = require('gulp-using') const fs = require('fs'); const gzip = require('...
Score of 0
1 answer
26 views

In the process of trying to update the following I have broken it. I changed require to import but it is obvious that I need to do more - can anyone help? It currently reports TypeError: template....
Score of 1
1 answer
95 views

I have this github pipeline I just created to automatically deploy an angular js project, that is compiled with the gulp command. name: Node.js CI with Gulp on: push: branches: - main ...
Score of 2
0 answers
753 views

I'm trying to upgrade from Gulp 4 to Gulp 5 and I'm getting Error: Writable stream closed prematurely. Here's the relevant function: const download = require('gulp-download2'); /** * Purgecss can ...
Score of 1
0 answers
42 views

I'm wanting to deploy a website to a testing server. I have literally spent days watching Youtubes, Lynda.com/LinkedIn Learning, etc. to find the best way to 'gulp build' a dist folder for me to ...
Score of 1
1 answer
838 views

I'm trying to create a clean task in my gulpfile that currently looks like this: const { series, src, dest } = require('gulp'); const del = import('del'); function clean() { del(['node_modules/...

1
2 3 4 5
253