-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What if I need to build HTML content using the chunks data? #625
Comments
After some research, there is two nunjucks loaders: The first one doesn't return a function, it returns a The best way for Overwise you have many other engines available: https://github.com/jantimon/html-webpack-plugin/blob/master/docs/template-option.md |
Just noticed there is already an open issue related to that: at0g/nunjucks-loader#35 |
Thank you for your answer. But the point is to handle it without having to depent of any template options. I mean in my case I need to add css file path that is not generated using Webpack, so it's not a part of entry point and would be great if that option is allowed by the module. |
Oh, I see, I misunderstood you. So to be clear, you want in the same html file you want:
I'm afraid you will have to use a template Here's a template you could use: <!DOCTYPE html>
<html>
<head>
<title>My app</title>
<meta charset="UTF-8">
<link href="my-static-style.css" rel="stylesheet">
</head>
<body>
</body>
</html> The rest of your css will be added in the |
Anyone needing to use Nunjucks with |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
What if I don't want
html-webpack-plugin
to generate the HTML for me? Would be great if we have an option like:The text was updated successfully, but these errors were encountered: