New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ilabdev/browsersync

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ilabdev/browsersync

Gulp tasks for syncing the browser with file changes

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

@ilabdev/browsersync

Gulp tasks for syncing the browser with file changes

Installation & set up

Install @ilabdev/browsersync

npm install @ilabdev/browsersync --save-dev

-- OR --

yarn add @ilabdev/browsersync --dev

Include @ilabdev/browsersync in your gulpfile.js

NOTE: Make sure you pass gulp through to the package as shown below. The package sets up gulp tasks and will need it passed through to work.

require( '@ilabdev/browsersync' )( gulp )

Add the content from config.sample.js to your .gulpconfig.js and adjust as appropriate

module.exports = {
    // Other configs here...
    browsersync: {
        watch: true,
        logColor: 'cyan',
        browsersync: {
            server: {
                baseDir: './',
            },
            ui: false,
            files: [
                '**/*',
            ],
            ghostmode: false,
            open: false,
            notify: true,
            watch: true,
        },
    },
    // Other configs here...
}

Run gulp browsersync to run the task, or add the task as a script and run that with npm or yarn

Config

watch

Type: boolean

Whether to sync the browser with file changes or not

loggerColor

Type: string

The logger color to use for any output text. See https://github.com/stgdp/fancy-logger#available-modifiers for colors that can be used

browsersync

Type: object

Options to be passed through to browsersync. See https://browsersync.io/docs/options for more information

Keywords

FAQs

Package last updated on 04 Oct 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc