Created
May 22, 2018 08:09
-
-
Save dc198689/e67cf323d40f3f3685ff1b76b2721e27 to your computer and use it in GitHub Desktop.
server/server.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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