2đź‘Ť
You can just add external (from the outside) resources like so:
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
and so on… CSS works the same way in link rel=”externalUrlTo.css”
For a production ready app; maybe consider using a module bundler like Webpack and npm to install dependencies. Therefore you don’t have to rely on a external services being up or down and have tighter control over bundling.
If you are in a ES6 or ES5-style CommonJS environment and using Webpack, you should consider installing your dependencies with npm
npm install module --save
and afterwards importing them in your JS code using var module = require('module')
or in ES6 import module from 'module'
For instance for jQuery it would be npm install jquery --save
(–save by the way stores it to your package.json to be able to restore your dependencies easily using npm install) and import it using var $ = require('jquery')
(again ES6: import {$, jQuery} from 'jquery'
).
For jQuery in particular take into account, that some libraries rely on it being globally available. So make sure to import it first and assign it to window (or global) as seen in How to import jquery using ES6 syntax?)
If you require a specific version you might also want to add it to your package.json or install it directly using npm install module@version
. Hope that helps a bit!