Search code examples
javascriptnode.jsmimeenduro.js

Include external js in enduro.js CMS


I'm trying to use enduro.js but i need to include an external js file to my index.hbs putting a script tag after body, just like a normal html file.

<script src="/assets/js/popper.js"></script>

This just says me in chrome console

Refused to execute script from 'http://localhost:3000/assets/js/popper.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

Can someone help me?

Thx in advance!


Solution

  • This might help.

      <script src="/assets/js/popper.js" type="text/javascript"></script>