🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

esbuild-plugin-browser-sync

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

esbuild-plugin-browser-sync

基于browser-sync的esbuild本地开发服务Plugin

0.1.1
latest
npm
Version published
Weekly downloads
4
100%
Maintainers
1
Weekly downloads
 
Created
Source

基于browser-sync的esbuild本地开发服务

安装

npm install -D esbuild-plugin-browser-sync

使用

配置文件中导入并使用

# esbuild.config.js

// 导入esbuild
import esbuild from 'esbuild'
// 导入插件
import esbuildPluginBrowserSync from 'esbuild-plugin-browser-sync'

// 使用
esbuild.build({
  ...
  plugins: [
    esbuildPluginBrowserSync({
      server: 'dist',
      port: 3000,
      open: true,
      ...
    })
  ]
})

参数配置

完整配置请查看 browsersync.io

Keywords

esbuild

FAQs

Package last updated on 07 Sep 2022

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