Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Vue-cli at least has a very neat feature; if you build with the —-modern flag it will create two versions of your scripts, one with modern syntax, smaller and faster for modern browsers and another legacy version for older browsers you have to support. It then uses the nomodule html attribute to automatically load the version your browser needs. This also has the nice effect of saving you bandwidth costs.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: