1.3.0 • Published 8 months ago

astro-browser-sync v1.3.0

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
8 months ago

astro-browser-sync

Add BrowserSync in your Astro Project.

npm.io

Usage

Manual Install,

npm i astro-browser-sync -D

If you want to manage BrowserSync or override default behavior of this integration, you can pass a browserSyncOptions 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: [
      // Default Config
      browserSync({
        mode: 'verbose',
        browserSyncOptions: {
          port: 4000,
          open: true,
          ui: {
            port: 4001,
          },
          notify: true,
        }
      }),
   ]
})

Changelog

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

1.3.0

8 months ago

1.2.2

9 months ago

1.2.1

9 months ago

1.1.2

10 months ago

1.1.1

10 months ago

1.1.0

10 months ago