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

astro-browser-sync

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

astro-browser-sync

Integrate BrowserSync into Astro.

  • 1.1.1
  • unpublished
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

[astro-browser-sync] 🌎

Add BrowserSync in your Astro project.

This plugin supports Astro 2.0 and Above.

Usage

BrowserSync starts alongside your Astro Server. By default, it uses the proxy mode of BrowserSync based on your Astro server options : no need to pass any options to make it work !

// astro.config.mjs
import { defineConfig } from "astro/config";
import BroswerSync from 'astro-browser-sync'

export default defineConfig({
    //....
   integrations: [
        BrowserSync(),
   ]
   //...
})

If you want to manage BrowserSync or override default behavior of this integration, you can pass a bs object with your BrowserSync options in it :

// astro.config.mjs
import { defineConfig } from "astro/config";
import broswerSync from 'astro-browser-sync'

export default defineConfig({
    //....
   integrations: [
        browserSync({
            mode: 'proxy' // proxy: default | snippet
            bs: { 
                port: 4000, // default `4000`
                ui: { port: 4040 }, // default `8000`
                notify: false, // default `true`
                open: true, // default `true`
            },
        }),
   ]
   //...
})

Changelog

See CHANGELOG.md for a history of changes to this integration.

Keywords

FAQs

Package last updated on 09 Jul 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