include.js
include.js copied to clipboard
It keeps trying to load css as js
I keep getting this warning:
/components/NavBar/navBar/css.js” was loaded even though its MIME type (“”) is not a valid JavaScript MIME type.
My code is like so:
include(['/components/NavBar/navBar.css', '/components/Footer/footer.css']);
I don't know why it's replacing the dot with a / but it shouldn't be.
Alright, figured out it's supposed to be //components/NavBar/navBar.css, but then that fails to get served. Still looking into it.