143 questions
0 votes
1 answer
113 views
error 404 and Refused to execute inline script because it violates the following Content Security Policy directive, utilizing browser sync gulp plugin
I am setting up the gulp for my landing page and have current problem using browser sync plugin: errors I have looked through many articles on this topic but have not found a solution src/index.html: &...
0 votes
1 answer
309 views
Violation Avoid using document.write(). Brovser-sync issue
Had a message in console that says to avoid using document.write(). how it looks in html Its took a while to find how to fix it or even find where problem is, couse have this part of code: <script ...
1 vote
1 answer
282 views
Why the gulp browsersync() does not work with Laragon?
Some times ago I created the simple gulp file for to automate development a bit. At the time, I was just working with XAMPP and my gulpfile worked well. But for the last time I started using the ...
0 votes
1 answer
313 views
Browsersync not reloading since updating to gulp-sass 5.0
Browsersync not reloading after each style/gulp-sass task. The issue started since updating Gulp. Here is the Gulpfile.js. It used to work when gulp-sass has a default Sass compiler. const sass = ...
0 votes
1 answer
439 views
Is there a way to have Browsersynch on gulp watch my WP php files?
So I downloaded this Worpress template with gulp and browsersynch which watches all .js files and .css files. The wierd thing is that whenever I want to use gulp and BroswerSynch I have to type npm ...
1 vote
0 answers
67 views
Tutorial for browser-sync setup for Wagtail
I am new to python world and finished Codeforeveryone Wagtail videos. I have wireframe website that I have added to Wagtail but could not figure out how to get browser-sync to work. Could anyone ...
0 votes
0 answers
2k views
window.location.href and startsWith
I have the following JavaScript running in Chrome (demo only) var url = window.location.href; console.log(url + ": " + url.startsWith('http://127.0.0.1')); If the url is http://127.0.0.1 ...
5 votes
5 answers
4k views
Using Browsersync via a Gulp Task with DDEV-local
I am using DDEV as my local hosting environment, and many of my projects implement front end automation via Gulp. Browsersync is a major component to our front end set-up, and requires ports to be ...
1 vote
0 answers
350 views
BrowserSync redirects file path to folder path
I have a Gulp site with BrowserSync and the following structure: . ├── README.md ├── gulpfile.js ... ├── app/ │ ├── index.html │ ├── example.html │ ├── tools.html │ └── tools/ └── dist/ When ...
1 vote
0 answers
44 views
Gulp 4 BrowSersync not refreshing the webpage when SCSS files changed
I just started to use Gulp with BrowserSync. Please, help me with following issue: When I save my SCSS files BrowserSync not refreshes the webpage but saves files OK. Here is what happening in the ...
0 votes
1 answer
879 views
Browser-sync not opening index.php (using Gulp)
I am having an issue where browsersync does not find/open my index.php file. The relevant parts of my gulp file are as follows: const browserSync = require("browser-sync").create(); const ...
0 votes
1 answer
1k views
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 /...
0 votes
0 answers
467 views
Can't edit styles in Chrome Dev Tools while using Browser-sync
I use the latest Chrome version on Mac (83.0.4103.116), Gulp + Browser-sync. In DevTools, after the Browser-sync applies the changes in style.css and reloads the page, I can't edit any style, it looks ...
1 vote
0 answers
97 views
What does whitelist and blacklist do in Browser-sync?
I am trying to figure out what the following code means. gulp.task('browsersync', function() { browserSync.init({ proxy: browsersync_proxy, notify: false, open: false, ...
1 vote
0 answers
130 views
browser-sync stream svg when using svg symbols
I'm trying to add browser-sync to an existing gulp setup. In my gulpfile I have a task that takes svgs in a folder and creates a single svg file with a <symbol> for each individual svg file. ...