You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, please forgive me for being a newb and let me know what I can improve to help clarify this issue.
I'm using Pug 2, Webpack 4
tl:dr; Everything is working as expected, except pug's extends/block functionality. The same content can be successfully imported using include, but as soon as the call is changed to a block, the partial is no longer registered in webpack's CLI log (forgive my lack of jargon knowledge here), and no content is rendered to the page.
This is the case whether the partial is in the same directory or in a child directory of index.pug.
(I also have a SO post up, but after playing around more I'm almost certain this is related to the loader.)
Apparently the "extend" function does not work, I have been trying but I still can't make it work with the "blocks", someone knows how to use it in this way, for now I'm using mixin in a provisional way
First, please forgive me for being a newb and let me know what I can improve to help clarify this issue.
I'm using Pug 2, Webpack 4
tl:dr; Everything is working as expected, except pug's extends/block functionality. The same content can be successfully imported using include, but as soon as the call is changed to a block, the partial is no longer registered in webpack's CLI log (forgive my lack of jargon knowledge here), and no content is rendered to the page.
This is the case whether the partial is in the same directory or in a child directory of index.pug.
(I also have a SO post up, but after playing around more I'm almost certain this is related to the loader.)
Ok, so...
I have a folder structure like:
webpackConfig.js (excerpt)
index.pug
partials/some-partial.pug
The text was updated successfully, but these errors were encountered: