Skip to content

Instantly share code, notes, and snippets.

View pawelmadeja's full-sized avatar
🤠

Paweł Madeja pawelmadeja

🤠
View GitHub Profile
@pawelmadeja
pawelmadeja / app.js
Last active January 12, 2019 11:20
Simple static http server with browserSync
const express = require('express')
const serveStatic = require('serve-static');
const app = express();
const port = process.env.PORT || 3001;
// Browsersync integration
if (app.get('env') === 'development') {
const browserSync = require('browser-sync');
const bs = browserSync.create().init({