
Security News
rv Is a New Rust-Powered Ruby Version Manager Inspired by Python's uv
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
@rbnlffl/esbuild-plugin-browser-sync
Advanced tools
easily integrate browser-sync into your esbuild development flow 🌊
easily integrate
browser-sync
into youresbuild
development flow 🌊
yarn install --dev @rbnlffl/esbuild-plugin-browser-sync
import esbuild from "esbuild";
import browserSync from "@rbnlffl/esbuild-plugin-browser-sync";
const context = await esbuild.context({
/* esbuild config */
plugins: [
browserSync({ /* options */ })
]
});
context.watch();
all of the supplied configuration options get directly forwarded to browser-sync
. you can find the official docs here: https://browsersync.io/docs/options
since esbuild
doesn't expose to its plugins whether it's in watch mode or not, whenever you include this bad boy, it will spin up a brand new browser-sync
session for you. even if you just once call esbuild.build
. so be mindful of that.
furthermore, if you are in esbuild
's watch mode, and you've configured browser-sync
to watch certain files, as well, make sure there are no overlaps in your files
prop and the actual sources you're piping to esbuild
. the plugin will automatically trigger a reload
every time one of the source files that esbuild
knows of, change. this may otherwise lead to multiple reloads, and unnecessary work for your cpu.
the best way to use this plugin is to have esbuild
take care of watching the source files, and instruct browser-sync
to watch assets that are outside of what you process via esbuild, like html files, an svg sprite, images, and so on. this allows you to have a smooth and very performant dx for web pages.
FAQs
easily integrate browser-sync into your esbuild development flow 🌊
We found that @rbnlffl/esbuild-plugin-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.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.