rotundasoftware / nunjucksify

Everything you expect from a module named nunjucksify and more.
34 stars 10 forks source link

Add docs to use nunjucks-slim in browser #5

Closed w0rm closed 10 years ago

w0rm commented 10 years ago

By default, nunjucksify requires nunjucks in browser, regular nunjucks.js is huge and may be replaced with a slim version, because templates are already precompiled. To do so, one may set the following browser option in package.json:

"browser": {
    "nunjucks": "nunjucks/browser/nunjucks-slim"
}

I tried this and it worked for me.