nunjucks-loader
nunjucks-loader copied to clipboard
A webpack loader for nunjucks.
Bumps [jquery](https://github.com/jquery/jquery) from 2.2.4 to 3.5.0. Commits 7a0a850 3.5.0 8570a08 Release: Update AUTHORS.txt da3dd85 Ajax: Do not execute scripts for unsuccessful HTTP responses 065143c Ajax: Overwrite s.contentType with content-type header...
Bumps [jquery](https://github.com/jquery/jquery) from 2.2.4 to 3.5.0. Commits 7a0a850 3.5.0 8570a08 Release: Update AUTHORS.txt da3dd85 Ajax: Do not execute scripts for unsuccessful HTTP responses 065143c Ajax: Overwrite s.contentType with content-type header...
Bumps [jquery](https://github.com/jquery/jquery) from 2.2.4 to 3.5.0. Commits 7a0a850 3.5.0 8570a08 Release: Update AUTHORS.txt da3dd85 Ajax: Do not execute scripts for unsuccessful HTTP responses 065143c Ajax: Overwrite s.contentType with content-type header...
Hello @at0g, I've been trying to use your loader for a project I'm working on. We are using nunjucks as the render engine combining it with Storybook to visualize the...
Template paths are stored in the shared `nunjucks.webpackDependencies` object as is, without being resolved, which may lead to the corresponding template references being overwritten as next templates are being pre-compiled....
Fixes #71. The repo seems to be abandoned, but I'm still opening a PR so whoever needs this fix can apply the patch in their fork or whoever takes over...
```njk {{ htmlWebpackPlugin | dump }} ``` Output: ```html {"files":{"publicPath":"","chunks":{"index.ejs":{"size":0,"entry":"index.ejs.js","hash":"ed1c491660e9aa6f3aa9","css":[]},"index.njk":{"size":80048,"entry":"index.njk.js","hash":"bccd8ca1d4159719fd86","css":[]},"index.pug":{"size":7625,"entry":"index.pug.js","hash":"58bbd8ba7d30397af7fc","css":[]}},"js":["index.ejs.js","index.njk.js","index.pug.js"],"css":[]},"options":{"template":"C:\\Users\\gitai\\Desktop\\wp\\node_modules\\html-webpack-plugin\\lib\\loader.js!C:\\Users\\gitai\\Desktop\\wp\\src\\pages\\b\\index.njk","filename":"b.html","hash":false,"inject":true,"compile":true,"favicon":false,"minify":false,"cache":true,"showErrors":true,"chunks":"all","excludeChunks":[],"chunksSortMode":"auto","meta":{},"title":"Webpack App","xhtml":false}} ```
This PR introduces changes already made in #48, but they were revereted, probably because loader-utils `getOptions` method should parse `this` instead of `this.query`. All tests are passing! It also relates...
Disclaimer: While I maintain this repo, I don't use nunjucks and have not done so for several years now. It does not suit my style of work, but I can...
Changes were introduced in https://github.com/at0g/nunjucks-loader/commit/34ba78955d40c80b5a05e70b128512ed1a276294, but options are not being passed to browser environment. I think it has to do with `hasRun` variable which returns `undefined` in every other pass...