Answer the question
In order to leave comments, you need to log in
How to do production with webpack without compiling pug?
Pug will be compiled dynamically on the server using express. therefore, in the assembly it is necessary that there are exactly pug files, and not already compiled html. In development, I compile pug to html to test how my app works with pugloader. but here's how not to compile pug for the assembly, and at the same time, the paths to the pictures are written in these templates using require, they need to be overtaken in the path relative to the assembly.
picture
here is an example of a pug template
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question