本文介绍了如何在Laravel 5.4中使用Bootstrap 4?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在laravel应用中使用npm安装了bootstrap 4.但是我认为引导程序3不能在引导程序4后面运行.
使用命令:

I installed bootstrap 4 using npm on my laravel app. But I think bootstrap 3 working behind not bootstrap 4.
using command:

    npm安装
    npm install bootstrap@4.0.0-alpha.6
    npm install bootstrap@4.0.0-alpha.6

我有事要做吗?还是我需要手动将引导程序导入资产/sass/app.scss文件?

Did I left something to do?Or do I need to manually import bootstrap to assets/sass/app.scss file or else?

推荐答案

您必须手动将链接从resources/assets/sass/app.scss更改为引导程序.您将看到此行

You have to manually change the link to bootstrap from resources/assets/sass/app.scss. You will see this line

@import "node_modules/bootstrap-sass/assets/stylesheets/bootstrap";

替换为

@import "node_modules/bootstrap/scss/bootstrap";

这篇关于如何在Laravel 5.4中使用Bootstrap 4?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 03:50
查看更多