October 2018
Intermediate to advanced
590 pages
15h 5m
English
First of all, let's install Bootstrap and its dependencies into our frontend directory by running the following command:
npm install jquery popper.js bootstrap --save
Once it is installed, we will need to import Bootstrap's compiled CSS into our application. There are many ways to import Bootstrap using webpack. The approach we will use here is to create a new entry in webpack to group all of the third-party styles into a single .css file. The following is the change to frontend/vue.config.js:
module.exports = { ... configureWebpack: { entry: { app: './src/main.js', style: [ 'bootstrap/dist/css/bootstrap.min.css' ] } }}
As you can see, we list the bootstrap.min.css file in the new entry, style. We will add styles ...
Read now
Unlock full access