A
A
Alexander Kositsyn2018-01-11 13:07:30
Building projects
Alexander Kositsyn, 2018-01-11 13:07:30

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 question

Ask a Question

731 491 924 answers to any question