A video player wrapped as a Vue.js component
npm install @thiago.dlm/vue-video> A video player wrapped as a Vue.js component
bash
npm install -s @thiago.dlm/vue-video
`$3
>vue-video has vue-fontawesome as its dependency. Therefore it will be installed with this package. In order to use this component you will need to instanciate vue-fontawesome first.$3
> main.js`javascript
import { library } from '@fortawesome/fontawesome-svg-core';
import { faPlay, faPause, faExpand } from '@fortawesome/free-solid-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
import App from './App';library.add(faPlay, faPause, faExpand);
Vue.component('font-awesome-icon', FontAwesomeIcon);
`$3
> Example.vue
`html
`
`javascript
`If you want to run the code from GitHub
> This is pretty much the same for when you create a project using vue-cli
` bash
install dependencies
npm installserve with hot reload at localhost:8080
npm run devbuild for production with minification
npm run buildbuild for production and view the bundle analyzer report
npm run build --reportrun unit tests
npm run unitrun all tests
npm test
``For a detailed explanation on how things work, check out the guide and docs for vue-loader.