Topic: vue-cli support
Leidos pro asked 6 years ago
Victor Raji free answered 5 years ago
In package.json - "mdbvue": "http://git.mdbootstrap.com/mdb/vue/vu-dev.git" - it's for free version.
please what do you mean in that step 5.? should I edit the package.json?? pls explain
Mikołaj Smoleński staff commented 5 years ago
The latest versions are working via NPM - it's the easiest way to install our package.
You just need to type the following expression in Your terminal: 'yarn add mdbvue'
Best regards
Mikołaj Smoleński staff answered 6 years ago
- vue init webpack my-project - to create new Vue CLI project
- cd my-project
- yarn add bootstrap
- yarn add font-awesome@4.7.0 --exact
- In package.json - "mdbvue": "http://git.mdbootstrap.com/mdb/vue/vu-dev.git" - it's for free version. For PRO You'll need to add here link from our gitlab repo
- yarn
- In main.js: import 'font-awesome/css/font-awesome.min.css' import 'bootstrap/dist/css/bootstrap.css' import 'mdbvue/build/css/mdb.css'
- Now You can import our components like this: import { Container, Row, Column, Btn, Card, CardBody, CardHeader, CardImg } from 'mdbvue';
Mikołaj Smoleński staff commented 6 years ago
If You have already working project You should begin from the 3 pointLeidos pro commented 6 years ago
thank you for the response. Currently I only have access to the JQuery pro version with gitLab. Can you please add mdbvue pro. This needs to be resolved ASAP as delays in support are now affecting project progression. Thank you.dfiguero free commented 6 years ago
Hey Mikolaj, thank you for these steps. I just started looking at MDB with Vue and I was wondering if there is an easier way to get it working with vue-cli? I have noticed other bootstrap+vue libraries only require one import (no need to import bootstrap/font-awesome separately) and also they do not require the individual components be imported individually but instead one can just say something similar to this inside main.js: import MDBVue from 'mdbvue' Vue.use(MDBVue) Is this something provided with the pro version? Thank youMikołaj Smoleński staff commented 6 years ago
Hey, we've prepared a quick start installation guide to make it easier. Please follow the steps from that page: https://mdbootstrap.com/vue/5-min-quick-start/ Best Regardsdfiguero free commented 6 years ago
Thank you MikołajMikołaj Smoleński staff commented 6 years ago
No problem. If You have more questions I am ready to help You.FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Pro
- Premium support: No
- Technology: MDB Vue
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No
Filip Kapusta premium commented 6 years ago
Hello, you’ve just been granted access to our MDB Vue GitLab repository.