Home

Awesome

Browser Sync integration into SourceJS

Gitter chat

Run browser-sync together with SourceJS. Get instant web-page updates after changing Spec file or JS, CSS assets.


To install, run npm in sourcejs/user folder:

npm install sourcejs-contrib-browser-sync --save

Then restart SourceJS, plugin will be enabled on next engine start.

Options

In user/options.js use plugins.browserSync object. Available options:

{
    enabled: true,
    forceEnabled: false,

    browserSync: {
        logLevel: logLevel,
        files: [
            'specs/**/index.+(src|src.html)',
            'specs/**/*.css',
            'specs/**/*.js'
        ],
        logSnippet: false,
        open: false
    }
}

TODO


Compatible with SourceJS v0.5.1+.