Created
May 22, 2018 08:12
-
-
Save dc198689/208941c7146c451b69cff4892fef3f4b 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