Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HELP ME - how to use HMR view engine pug #7

Open
long-hp opened this issue Jan 30, 2018 · 2 comments
Open

HELP ME - how to use HMR view engine pug #7

long-hp opened this issue Jan 30, 2018 · 2 comments

Comments

@long-hp
Copy link

long-hp commented Jan 30, 2018

let router = require('./router.js');
app.set('views', path.resolve(__dirname, entryPath));
app.locals.basedir = path.resolve(__dirname, appConfig.folders.path);
app.set('view engine', 'pug');
app.use('/', router);

@darul75
Copy link
Owner

darul75 commented Jan 30, 2018

hello,

To be honest, I have never tried to use pug as the default view engine.

Do you mean that when updating dynamically a view the HMR does not work?

@long-hp
Copy link
Author

long-hp commented Jan 31, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants