-
Notifications
You must be signed in to change notification settings - Fork 10
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
Minimize payload size #3
Comments
I have managed to simplify template compilation code a little bit by using |
I'm a bit confused why we need this bunch of code (like you @w0rm said, it's kind of a no go for many tiny templates), to give browserify a hint where the other templates are. So I created my own transformer inspired by your one. Before I will start making a PR for this changes, I would like to know, what you guys think about my approach of handling required template paths. https://gist.github.com/lennerd/78fe961391c20c1ba6ed What I basically did, was to not override the If you have any questions please ask. I'm really interessted in your opinion on that. |
@lennerd hi! Does your code pass all the tests? |
I'm relativly new to unit tests in JS. Can you give me an example to run the mocha tests? When I run the tests with
I always get the same error from the
Did I miss something? |
Ah, this tests fail with the original code. So no new code applied or added. |
nunjucksify
adds a bunch of code to every module. This is a no go for bundles with many tiny templates.Maybe introduce an option to rely on
nunjucks.env
to get templates rather than mockgetTemplate
for every module?The text was updated successfully, but these errors were encountered: