I've been attempting to upgrade from jade-loader to pug-loader, but trying to include a nested template generates broken tags that look to be created from the raw JS template function, instead of the expected HTML output.
// index.pug
doctype html
html
head
body
#loading
include ./components/Spinner/fouc-spinner.pug
#root
// ./components/Spinner/fouc-spinner.pug
.spinner-grid-fouc
.spinner-cube.spinner-cube1
.spinner-cube.spinner-cube2
.spinner-cube.spinner-cube3
.spinner-cube.spinner-cube4
.spinner-cube.spinner-cube5
.spinner-cube.spinner-cube6
.spinner-cube.spinner-cube7
.spinner-cube.spinner-cube8
.spinner-cube.spinner-cube9
I've been attempting to upgrade from
jade-loader
topug-loader
, but trying toinclude
a nested template generates broken tags that look to be created from the raw JS template function, instead of the expected HTML output.becomes: