Nunjucks works fine on client-side without precompilation. But as soon as I add .pipe(nunjucks.precompile()) to my gulpfile, and include nunjucks-slim.js on my page (no other changes have been made on the code, just these two), I can't see the request to retrieve the template from the server on my network tab (firefox developer) , and the console shows "Error: template not found: ".
I tried using the normal nunjucks.js (not the slim) with the precompiled template, it returns the javascript function as text. The precompiled template was retrieved, so I believe this is not an issue with gulp or the gulp-nunjucks plugin, or anything related to file path.
Nunjucks works fine on client-side without precompilation. But as soon as I add .pipe(nunjucks.precompile()) to my gulpfile, and include nunjucks-slim.js on my page (no other changes have been made on the code, just these two), I can't see the request to retrieve the template from the server on my network tab (firefox developer) , and the console shows "Error: template not found:".
I tried using the normal nunjucks.js (not the slim) with the precompiled template, it returns the javascript function as text. The precompiled template was retrieved, so I believe this is not an issue with gulp or the gulp-nunjucks plugin, or anything related to file path.