I tried using CDN and CDN works fine but I want to use it from node modules and as I try to do this:
import 'ionicons/dist/ionicons';
I get this error in my console:
Loading module from “http://localhost:3000/js/ionicons/ionicons.esm.js” was blocked because of a disallowed MIME type (“text/html”).
As the error is obvious and file is not being served from node modules. I was able to import SVG image but since I cannot change color to SVG image. I do want js modules in my script.