Last active
February 23, 2018 01:53
-
-
Save andreloty/5c2152b1f87ac7e569a781d95bd51d9d to your computer and use it in GitHub Desktop.
set reloadify on express
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
// set reloadify | |
if (process.env.NODE_ENV !== 'prodution') { | |
var reloadify = require('reloadify')([ | |
__dirname + '/views', | |
__dirname + '/public', | |
]) | |
app.use(reloadify) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment