Skip to content

No refresh on changes in sub templates #1072

@Aftabnack

Description

@Aftabnack

Description

I have other sub templates which I am including in my main index.html. The screen doesn't refresh on changes in any of the subtemplates.

However it refreshes (all files) if I change something in index.html.

Config

  • I'm using it inside unejected CRA v2 ([email protected])
  • I have added html-loader as the dev dependancy

index.html file:

<body>
  <noscript>
    You need to enable JavaScript to run this app.
  </noscript>
  <%= require('html-loader!./test.html')%>
  <div id="root"></div>
</body>

test.html file:

<script type="text/template" id="testting">
    <div><%=name%> is the asa</div>
</script>

Relevant Links

Environment

Node.js v8.12.0
linux 4.15.0-36-generic
[email protected]
[email protected]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions