Bones/node_modules/bs-recipes/recipes/server.middleware/app.js

14 lines
348 B
JavaScript
Raw Normal View History

2017-05-17 13:45:25 -04:00
/**
* Require Browsersync
*/
var browserSync = require('browser-sync').create();
var historyApiFallback = require('connect-history-api-fallback')
/**
* Run Browsersync with server config
*/
browserSync.init({
server: "app",
files: ["app/*.html", "app/css/*.css"],
middleware: [require("connect-logger")(), historyApiFallback()]
});