Open sylvainbaronnet opened 4 years ago
Same with ejs and same issue without hot reload
Thanks for the report. I'll have a look when I'm able to get to it. This pr was supposed to address this for Twig, afaik.
ok thanks, btw i also had to add this path: info.filename
to make it work
Hi! I know this is an old issue, but is there any fix for loading partials? I tried this config, but somehow, it still doesn't work:
{
test: /\.twig$/,
use: [{
loader: 'render-template-loader',
options: {
engine: 'twig',
locals: {
mode: process.env.NODE_ENV || 'development', // Use NODE_ENV or default to 'development'
},
engineOptions: function (info) {
return {filename: info.filename, path: info.filename};
}
}
},]
},
thanks for any help!
Hello,
I have an issue, twig partials are not reloaded (even refreshing the browser manually). here the rule I use :
with
thanks in advance for your help