pugjs / pug-loader

Pug loader module for Webpack
MIT License
425 stars 119 forks source link

Work both under webpack and not? #112

Closed taschmidt closed 6 years ago

taschmidt commented 6 years ago

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

taschmidt commented 6 years ago

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!