Skip to content

Instantly share code, notes, and snippets.

@dc198689
Created May 22, 2018 08:09
Show Gist options
  • Save dc198689/e67cf323d40f3f3685ff1b76b2721e27 to your computer and use it in GitHub Desktop.
Save dc198689/e67cf323d40f3f3685ff1b76b2721e27 to your computer and use it in GitHub Desktop.
server/server.js
/**
* Basic Initialize Package depends on Project Scale
*/
const express = require('express');
const path = require('path');
const app = express();
/**
* Express Server Configuration
*/
app.engine('.html', require('ejs').__express);
app.set('view engine', 'html');
app.use('/static', express.static(path.join(__dirname, '../build/static')));
app.use('/service-worker.js', express.static(path.join(__dirname, '../build')));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment