-
Notifications
You must be signed in to change notification settings - Fork 39
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
Failure when combining nunjucks-loader and file-loader. #24
Comments
I don't really get your use case for chaining file and nunjucks loaders together - can you explain what you're expecting to happen? In regards to modular design that you've linked to, I don't see how this could be possible with nunjucks due to how template dependencies are resolved. |
Hello @patrickporto Any feedback at all or just trollin`? |
My expectation is that:
|
The title of the issue is a bit vague, but I'm looking at @patrickporto's same use case. |
@at0g, I've changed and the title and the description as requested. Sorry about any misinterpretation. English is not my mother tongue. |
@patrickporto thanks for cleaning up the title. |
@at0g Thanks |
Not as easy as I'd hoped for... I've burnt a few hours tonight trying to get an intermediate method to work and haven't got very far 👎 Probably won't get a chance to look at it again before next weekend... pretty sure this needs to be a separate project to make it work. Can either (or both) of you post here with a bit more information about what you're trying to do... specifically with some info about how you'd like to pass data and configure nunjucks. |
Maybe nunjucks-html-loader can compile nunjucks to html. |
when using sass / fontawesome you need the file-loader as well |
@daslicht |
ahh so you pass a loader to nunjucks loader |
it provides a eg.
|
im still getting a issue:
do you have any Ideas? |
@vacchi I presume src/templates/includes/images/image.png does exist? |
Loader generated modules should respect the same design principles like normal modules.
Example: That’s a bad design: (not modular, global state, …)
I tried to combine with file-loader, but is not working:
Reference: https://webpack.github.io/docs/how-to-write-a-loader.html#generate-modules-that-are-modular
The text was updated successfully, but these errors were encountered: