Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
gulp-query-browser-sync
Advanced tools
This plugin provides BrowserSync with a single line of code
BrowserSync plugin for gulp-query
Uses browser-sync
This plugin provides BrowserSync with a single line of code
npm install gulp-query gulp-query-browser-sync
Paste the code into your gulpfile.js
and configure it
let build = require('gulp-query')
, bs = require('gulp-query-browser-sync')
;
build((query) => {
query.plugins([bs])
.bs(['src/js/**/*.js'],'example.com') // Be sure to read the Attention below
.bs(['src/js/**/*.js'],'example2.com',{bs:{port:3010,ui:{port:3011}}})
;
});
And feel the freedom
gulp watch // Watching change
gulp bs watch // Only for bs files
gulp bs:app watch
...
.bs({
name: "task_name", // For gulp bs:task_name
watch: "src/js/**/*.js", // ["src/js/**/*.js", "views/**/*.php"]
injectCSS: true, // For reloading only css, if css file was changed
bs: {
proxy: "example.com",
port: 3000,
ui: 3001,
...
// All options for BrowserSync
}
})
// short
.bs([watch], proxy, task_name);
// short with config
.bs([watch], proxy, {config});
In some cases, you need to change the /etc/hosts
to work proxy
127.0.0.1 localhost
127.0.0.1 example.com ## insert proxy host
...
If you are working through the VirtualBox/Vagrant, you need to turn off sendfile
.
For NGINX (/etc/nginx/nginx.conf
) add sendfile off;
For Apache EnableSendfile off
FAQs
This plugin provides BrowserSync with a single line of code
We found that gulp-query-browser-sync demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.