Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

browser-sync-spa

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

browser-sync-spa

Single Page App support for BrowserSync

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

BrowserSync SPA

Better Single Page App support for BrowserSync

#Install

$ npm install browser-sync browser-sync-spa

#Setup

var browserSync = require("browser-sync");
var spa         = require("browser-sync-spa");

browserSync.use(spa({
    selector: "[ng-app]" // Only needed for angular apps
}));

browserSync({
    open: false,
    server: "setups/angular",
    files:  "setups/angular/*"
});

#What you get.

This first release simple addresses two of the most requested features in BrowserSync.

  • Built-in history API fallback
  • State-change syncing for Backbone + Angular apps.

#Moving forward.

I really need some contributors with SPA experience that can help make this plugin awesome. BrowserSync is already the best solution for live reload + css injecting on SPA's, but it's clear we can do better.

Please get involved if you have any experience with HTML5 history api etc.

#Help Clone this repo and run npm install && npm test.js to get an idea of what this plugin will do for you.

#Resources BrowserSync

Keywords

FAQs

Package last updated on 12 Sep 2015

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