Root SL Root SL - 4 days ago 5
Javascript Question

How to disable browsersync in Aurelia application?

I created an Aurelia application using aurelia-cli.
I need to disable the browsersync option and also the notifications generated by it. Like "Connected to browser sync" Like that.
Is there any way to do that ?

Answer

When you build your application for production, it will not include Browser Sync.

Instead of the normal

> au run --watch

You'll use

> au build --env prod

After that, you'll need to serve up your application through a traditional web server. If you've correctly bundled it, you'll only need index.html and your scripts folder.

Comments