activewidgets / getlibs

OBSOLETE, DO NOT USE: This project is no longer maintained
MIT License
165 stars 12 forks source link

Targeting specific version of a library #2

Closed raibima closed 7 years ago

raibima commented 7 years ago

How do I go about doing this?

xkam commented 7 years ago

getlibs is based on SystemJS, so you can just configure it the way you want, for example -

System.config({
  map: {
    'vue': 'https://cdnjs.cloudflare.com/ajax/libs/vue/2.3.3/vue.min.js'
  }
});

System.import('./main.js');

The SystemJS docs are here - https://github.com/systemjs/systemjs/blob/master/docs/config-api.md

Look also to the custom configs that getlibs includes by default - https://github.com/activewidgets/getlibs/tree/master/config