Created
May 22, 2018 08:14
-
-
Save dc198689/f021c1379483468f2dd8860dc9e5bcf6 to your computer and use it in GitHub Desktop.
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