outdatedbrowser / outdated-browser

A simple tool to identify and upgrade old browsers.
https://bestvpn.org/outdatedbrowser/
MIT License
3.53k stars 374 forks source link

Vue.js #300

Open jamursch opened 6 years ago

jamursch commented 6 years ago

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.

jamursch commented 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?

hypeJunction commented 5 years ago

I had no luck either. I think the module is not exported properly, so Vue doesn't recognize it as a node module.

gokhantaskan commented 5 years ago

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