gulp Questions

2

Solved

For all projects I have gulpfile.js in the project's root (also bower.json, package.json and node_modules). In PhpStorm Settings > Languages & Frameworks > Node.js and NPM I can see all the (lo...
Verduzco asked 6/11, 2015 at 12:35

22

Solved

I have tried to install gulp-sass latest version with npm i gulp-sass --save-dev in the begining I got a lot of errors but later solved them. But whenever I try to run gulp I got this error: Error:...
Wherein asked 30/10, 2020 at 16:58

7

Solved

For some reason, no matter what I try, Google Chrome never seems to be able to display http://localhost:3000 (or any other specified port number for that matter) when starting up a server with Brow...
Abuse asked 23/8, 2015 at 21:26

23

Solved

When using eslint in the gulp project i have encountered a problem with error like this Expected linebreaks to be 'LF' but found 'CRLF' linebreak-style and I am using Windows environment for the ru...
Interconnect asked 15/6, 2016 at 4:55

8

Solved

Is there any way you can stop moment.js from loading all the locales (I just need English) when you're using webpack? I'm looking at the source and it seems that if hasModule is defined, which it i...
Topee asked 19/8, 2014 at 13:13

5

Solved

I want to update my Browser-sync without updating all my node packages. How can I achieve this? My current version of Browser-sync does not have the Browser-sync GUI :( ├─┬ [email protected] ...
Noctiluca asked 30/3, 2017 at 20:37

21

I have the following gulpfile.js, which I'm executing via the command line gulp message: var gulp = require('gulp'); gulp.task('message', function() { console.log("HTTP Server Started"); }); I...
Iconostasis asked 27/4, 2016 at 18:20

2

I'm trying to run "npm publish" from a gulp task. It works, but I want to handle any error that npm command itself throws. If I execute this code: var cmd = spawnSync('npm.cmd', ['publish', packa...
Thapsus asked 20/10, 2016 at 8:35

44

Solved

I have installed Node.js modules by 'npm install', and then I tried to do gulp sass-watch in a command prompt. After that, I got the below response. [18:18:32] Requiring external module babel-regis...
Satiate asked 30/4, 2019 at 12:57

1

In my package.json I have listed gulp as one of my dependencies. { "name": "myproject", "devDependencies": { "gulp": "^4.0.2" // other stuff }...
Insincerity asked 30/7, 2021 at 10:57

3

Solved

I'm rebuilding my Gulp implementation for compiling, minifying, and compressing TypeScript files into a single bundle using the latest version of Rollup. The new implementation is complete and work...
Chappie asked 27/2, 2023 at 16:26

7

I am using gulp/live reload in my development workflow. When styling an element using CSS I sometimes adjust that element's style rules ( Edit: using event.style {} under the elements panel) direct...
Collocate asked 22/12, 2014 at 19:44

2

Solved

So I'm using terser with gulp and have tried several combinations but nothing seems to minify the function names here is an example: function minify() { return gulp.src('js/**/*.js') .pipe(gTer...
Churchy asked 22/3, 2019 at 17:33

2

I am using a TFS build project to build a Visual Studio 2015 project that contains a gulpfile for compiling SASS among other things. I am trying to understand the sequence of events using MSBuild T...
Republic asked 13/7, 2016 at 17:57

11

I am new in laravel. I am trying the command nmp install. it does not work. Then as shown in their official documentation, I tried npm install --global gulp-cli but I was getting access denied ...
Knapp asked 13/8, 2016 at 21:19

11

Solved

Windows 10 pro x64 I ran the following commands npm install --global gulp-cli npm init Then I changed directory to my project: npm install --save-dev gulp then tried to run gulp and got -b...
Everara asked 2/11, 2016 at 22:28

5

Solved

How do I run a Gulp task from a Go program? This is the command I run from a typical terminal: gulp serv.dev How could I run this simple line of code from golang: package main import ( "net...
Humiliate asked 31/7, 2015 at 2:11

3

Solved

I have tried to animate an svg-sprite with CSS. I’ve created a sprite and injected it from gulp: gulp.task('svgstore', function () { var svgs = gulp .src('app/svg/*.svg') .pipe(svgmin(function (...
Benzvi asked 10/12, 2017 at 20:21

3

Solved

I have container.twig including component.twig and passing an object called 'mock'. In container.twig: {% set mock = { title : "This is my title" } %} {% include 'component.twig' with mock %} ...
Excretory asked 28/4, 2016 at 16:0

8

Solved

A small project I started make use a node module (installed via npm) that declares const variables. Running and testing this project is well, but browserify fails when UglifyJS is executed. Unex...
Decimate asked 22/11, 2017 at 16:1

8

I am trying to use gulp in order to minify a folder containing JS files. However, one of the files has the above error, preventing it from being minified. I managed to catch and print the error, w...
Wisner asked 21/2, 2017 at 18:44

18

When I compile with gulp, I got an error like below. How can I fix it? module.js:339 throw err; ^ Error: Cannot find module 'gulp-sass' at Function.Module._resolveFilename (module.js:337:15) at ...
Albuminous asked 24/10, 2015 at 4:39

7

Solved

In my gulp.js file I'm streaming all HTML files from the examples folder into the build folder. To create the gulp task is not difficult: var gulp = require('gulp'); gulp.task('examples', funct...
Vannessavanni asked 16/2, 2014 at 3:29

4

Solved

Problem and question I've always had problems with CSS code, so now I always use SaSS code. But my question is: how can I use SaSS for an ASP.NET MVC application? I've tried I've tried tried t...
Ho asked 13/2, 2017 at 17:14

11

I'm trying to browserify my react app for production using gulp and envify to setup NODE_ENV. So I can remove react warning, error reporting in the console, and even my code to disable some feature...
Grecize asked 18/11, 2015 at 15:10

© 2022 - 2024 — McMap. All rights reserved.