Open jamursch opened 6 years ago
Moved the files from within the "node_modules" directory into the "static" directory and everything seems to work fine, but I'll miss out on auto updates. Anyone know why this works under static but not node_modules?
I had no luck either. I think the module is not exported properly, so Vue doesn't recognize it as a node module.
It is all about using static when you want to use outdated-browser. Vue uses babel, old browsers may not use es6 features so Vue ( and other frameworks ) causes some problems.
-- Use Static Files
Referencing the .css and .js files in the index.html page in a vue.js project keeps throwing this in the console window. Is there a preferred way to include outdatedbrowser in vue.js projects?
Refused to apply style from 'http://localhost:8080/NextGenUI/node_modules/outdatedbrowser/outdatedbrowser/outdatedbrowser.min.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.