vue引入bootstrap和fontawesome

c3tc3tc3t發表於2018-02-11
npm install jquery

npm install bootstrap

npm install popper.js.

import $ from 'jquery'
import 'bootstrap'
import '../node_modules/bootstrap/dist/css/bootstrap.css';
 

 

window.$ = $
 
let jQuery = $;

將fontawesome資料夾的 fontawesome-all.min.css拷貝到assets/css中,

將fontawesome的webfonts拷貝到assets中

App.vue中

<style scoped>
@import './assets/css/fontawesome-all.min.css';
</style>

 

相關文章