Sorry if this is a silly question. I have an AWS lambda that I distribute with webpack and pug-loader is working just fine for that. But when doing active development, it's inconvenient to have to rebuild every time I make a change to a pug file. I've seen other comments about a webpack dev server that automatically reloads but that felt a little heavy handed. But if I try running my express site with node server.js it pukes on the require statements that pug-loader needs. Is there any way to make them both happy?
Following up, I've finally embraced the serverless framework and there are great plugins (serverless-webpack and serverless-offline) to help for exactly my use case!
Sorry if this is a silly question. I have an AWS lambda that I distribute with webpack and pug-loader is working just fine for that. But when doing active development, it's inconvenient to have to rebuild every time I make a change to a pug file. I've seen other comments about a webpack dev server that automatically reloads but that felt a little heavy handed. But if I try running my express site with
node server.js
it pukes on the require statements that pug-loader needs. Is there any way to make them both happy?Thanks, tim