Skip to content

nested templates do not recompile #4

Closed
@WiNloSt

Description

@WiNloSt

I tried using the syntax <% include some/file %> as suggested. Seems only the root and the immediate included templates will recompile when changed.
For instance if I have

index.ejs

index.ejs contents
<% include a.ejs %>

a.ejs

a.ejs contents
<% include b.ejs %>

b.ejs

b.ejs contents

And if I require('./index.ejs') somewhere. Only when index.ejs and a.ejs are changed, then webpack will recompile. But when b.ejs is changed, webpack will not recompile.

I also tested including multiple templates in index.ejs, all of those included files including index.ejs will cause webpack to recompile if they changed.

I'm not sure if this is a bug or not. I'm not experience with ejs and webpack that much.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions