Opal-Estate-Pro/node_modules/bs-recipes/recipes/server.middleware/app.js
2019-09-13 09:44:33 +07:00

14 lines
348 B
JavaScript

/**
* 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()]
});