I am relatively new to using Visual Studio but the project I am working on is a website with multiple pages in .cshtml
files. I have set up Webpack as the front end build tool and want to start using Pug as the templating engine. It makes more sense to me to have the build tool compile the Pug templates into HTML and keep my dependencies low, rather than Visual Studio compiling them (using something like PugViewEngine).
Should I create a /pug
folder and start re-building the views out there as .pug
files with any Razor syntax as plain text - then use Webpack to compile to HTML with a .cshtml
file extension and dump it back in the /Views
folder of the Visual Studio project - or is there a better way to approach this?