Bootstrap 4 我想在我的ionic 4应用程序中使用引导

Bootstrap 4 我想在我的ionic 4应用程序中使用引导,bootstrap-4,ionic4,Bootstrap 4,Ionic4,我正在构建一个ionic 4应用程序 我想在我的应用程序中使用bootstrap 我怎么做 "styles": [ { "input": "src/theme/variables.scss" }, { "input": "src/global.scss" }, { "input": "node_modules/bootstra

我正在构建一个ionic 4应用程序 我想在我的应用程序中使用bootstrap

我怎么做

"styles": [
          {
            "input": "src/theme/variables.scss"
          },
          {
            "input": "src/global.scss"
          },
          {
            "input": "node_modules/bootstrap/dist/css/bootstrap.min.css"
          }
        ],

请帮助我。

只想使用引导中的css文件,最简单的方法是像这样将其css文件导入global.scs

@import './theme/variables';
@import '../node_modules/@ionic/angular/css/ionic.bundle.css';
@import '../node_modules/bootstrap/dist/css/bootstrap.css';
不需要更改angular.json。

可能重复的