Gulp browser-sync only works once

I'm trying out Gulp on one of my projects and I wanted to run it like I used to with Grunt watch. Meaning, it has to watch less files and js files, lint, merge, compile and refresh the browser...

npm install errors on vagrant/homestead/windows: EPROTO: protocol error, symlink

I'm building my first project in Laravel and trying to use Elixir, using homestead on Windows 8.1. I've hit the known npm/vagrant issue of too-long-path-names:...

How to use multiple Pipes with gulp-if and lazypipe?

I have a Grunt file that is working without using gulpif and lazypipes, but what I am trying to do is create a task that will take in the script files in my index.html page using useref. Then...

BrowserSync notify false not working in gulp

I have following in my gulp file to turn off the browser notification but it still shows up: gulp.task('browserSync', function() { browserSync({ server: { baseDir: 'app', }, ...

Get the mocha "end" event from gulp

I'm using gulp-mocha with gulp and I'm trying to get a notification when the mocha tests get completed. This is my gulpfile.js var gulp = require('gulp'); var mocha = require('gulp-mocha'); var...

How to use Lumx in Laravel with Elixir?

I followed one answer provided in https://stackoverflow.com/questions/29326707/angularjs-with-laravel-5-using-npm but I cannot successfully compile the SCSS files of lumx using Gulp. Anyone knows...

Switching from Gulp to Webpack

UPDATE 30.04.20 [ https://stackoverflow.com/questions/44811367/move-from-webpack-1-to-webpack-2-3?noredirect=1&lq=1 ] My first question is about how recommended is this switch for simple projects,...

Why is gulp complaining about Maximum call stack size exceeded?

I am writting a gulp tasks where I take several js file , concat them , minify those.. same with scss into css etc ...normal stuffs And, it is for Drupal 8 Here is my gulpfile. However on running...

How to fix browser-sync & socket.io conflict?

I seem to have a conflict of the socket used in browser-sync and the one I want to use with socket.io. I use browser-sync via a gulp task (that comes with Aurelia CLI default project). What...

Laravel echo server client not receiving event

I have a small Laravel Echo Server setup using this package (https://github.com/tlaverdure/laravel-echo-server). I have the following setup: // app.js import Echo from...

Error: File to import not found or unreadable: node_modules/bootstrap-sass/assets/stylesheets/bootstrap

I get the following error when installing elixir on laravel 5.2.31 gulp [12:05:58] Using gulpfile /var/www/html/ta/gulpfile.js [12:05:58] Starting 'default'... [12:05:58] Starting...

how to download and install all node modules through package.json?

I want to invoke and download all node modules through maven, in maven I have defined the plugins to install it but now in my package.json i have defined the following npm install command, please...

Can't resolve all parameters for BsModalService

I'm adding a modal to my spfx angular 2 application. I was trying to follow ngx-bootstrap-modal through http://valor-software.com/ngx-bootstrap/#/modals. but I am getting this error: Unhandled...

How to live reload browsersync using gulp in laravel homestead environment?

I am trying to run Browsersync using gulp task runner within homestead laravel environment. Browsersync fires up in commander and when I make a change, Browsersync says it is "reloading browsers"....

Avoid using document.write() occurs when trying to load a dashboard page in Chrome

So I have been stuck on this problem for longer than i'd care to admit but as a Angular newbie I am completely baffled. So I am following some online tutorials in order to implement Gulp into an...

ES6 modules in Gulp

I'm trying to make the boilerplate for frontend development based on GULP. As you can see in the code I've added gulp-babel task, but unfortunately ES6 modules (import, export) aren't working....

How to set up browserSync reload html, js using Gulp 4?

How to set up browserSync reload html, js in Gulp 4? There is no problem with sass loader. I can’t configure reload html and js. Where is my mistake? I tried *gulp.watch(".html").on("change",...

Vue.js with Rollup.js renders html comment instead of Vue html

Recently started working with Vue.js and am having difficulties getting a simple interpolation to render inside of my local development app. The Output For some reason, the Vue instance renders...

TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object

There was a need to deploy an old project. Corrected gulpfile.js a bit so that the assembly started running, it came across an error: [21:12:57] Finished 'html:build' after 71 ms [21:12:57]...

Cache busting in gulp only working with index.html changes, not css or js changes

I'm having issues with the browsers cache so I am trying to update the index.html file if the css, js or html files are changed. The line I want to update is: <link rel="stylesheet"...

Using Gulp watch, Axios and Browsersync to do an HTTP get before reloading browser on file change

I'm trying to watch 2 sets of folders. One set just requires a browser reload on change. The second requires "reinitializing the framework", via a separate, background http get before doing the...

Solved - BrowserSync on Docker is running correctly and able to detect changes, but browser doesn't seems to be triggered/reloaded

Source code can be found from: https://github.com/kevinchu-work/Docker_with_BrowserSync (Resolved & Completely working fine now) I am trying a very simple Node Docker + BrowserSync + Gulp working...

Gulp Won't Compile SASS unless style.scss is edited

I'm using Gulp on a WordPress website, and I have it setup using WPGulp. It's working somewhat, except I'm running into a couple issues. Browsersync isn't happening at all. And it won't compile...

How to get Browser-Sync to serve PHP-Files in Gulp 4

I am working on a gulpfile which already works fine when its processing html/scss/js. Now I want to have my site on PHP-basis and need Browser-Sync to serve my PHP instead of showing "Cannot GET...

Gulp does not work with images (reads inly ine .jpg file)

I have a project, where are .jpg, .png, .svg images. I installed imagemin plugin to compress all of them. When i start the task, gulp compresses only one .jpg file. what it can be? But i tried to...

changing syntax of gulp 3 to gulp 4, problems w differences 3 and 4 versions

I have this code on gulp 3.9.1, now i have installed gulp 4 and i have errors while my project is compiling I have this common error: AssertionError [ERR_ASSERTION]: Task function must be...

Primordials is not defined: graceful-fs with node v12

I am new to node js and have started looking into migrating a nodejs application from node v8 to node v12. In doing so, I am facing the following error: ReferenceError: primordials is not...

unable to upgrade yarn package or dependencies (semantic-ui/rails)

I would like to upgrade to the latest version of Semantic UI to see if some issues regarding content security policy have been fixed. I type yarn upgrade semantic-ui to upgrade, and get the...

How can I get a value from index.html and use it to render a second template after parsing JSON file?

I'm trying to wrap my head around gulp and modern JavaScript bundling. _____ The application is pretty simple: A html page is displayed to the user, where he must check a few radio buttons. User...

Cannot use import statement outside a module - Timber Starter Theme - Gulp

I'm coding a simple website using Timber Starter Theme on Wordpress but I need import some modules in my js files. I use gulp an here is my gulp file // Gulp...