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
njk file -> nunjucks-loader (with custom variables) -> html file
all of this happens in webpack config file.
the output of HTML files will be generated directly after webpack has compiled them.
but not the way you did in the entry.js, that jquery append the html string into the body tag.
I don't know how to achieve this, or it's not possible at present?
Thanks in advance!
The text was updated successfully, but these errors were encountered:
Kaijun
changed the title
How to pass custom variables in to loader in webpack config file?
How to pass custom variables into loader in webpack config file?
Aug 19, 2016
Actually, i want to achieve
all of this happens in webpack config file.
the output of HTML files will be generated directly after webpack has compiled them.
but not the way you did in the
entry.js
, that jquery append the html string into the body tag.A good example of the idea would be the
ejs-loader
: https://github.com/okonet/ejs-loader#optionswhich let the users to pass variables by defining it in
query
I don't know how to achieve this, or it's not possible at present?
Thanks in advance!
The text was updated successfully, but these errors were encountered: