【问题标题】:How to downgrade from Bootstrap 4 to 3 in Laravel如何在 Laravel 中从 Bootstrap 4 降级到 3
【发布时间】:2018-06-04 10:40:53
【问题描述】:

我在谷歌上搜索过,但找不到任何有用的链接。 我正在将 AdminLTE 与 laravel 5.6 集成,而 AdminLTE 需要 bootstrape 3,而 laravel 有 4。 所以,我想从 4 降级到 Bootstrape 3。

【问题讨论】:

    标签: twitter-bootstrap-3 bootstrap-4 laravel-5.6 adminlte


    【解决方案1】:

    如果有人需要这个。

    步骤如下:

    1. Npm install bootstrap@3.3.7
    2. Change the bootstrap entry from package.json and replace it with "bootstrap": "3.3.7"
    3. in resources/assets/sass/app.scss,
            a. comment out the import of variables 
               OR change height base to 14 px instead of 0.9 rem in _variable.scss. 
            b. change the path of bootstrap to 
               @import "node_modules/bootstrap-sass/assets/stylesheets/bootstrap";
    4. in resources/assets/js/bootstrap.js, 
       look for require('bootsrap-sass'); and change it to require('bootstrap');
    

    希望这会有所帮助!

    【讨论】:

    • 找不到或无法读取要导入的文件:bootstrap-sass/assets/stylesheets/bootstrap。
    猜你喜欢
    • 2018-09-27
    • 2020-05-16
    • 2013-09-15
    • 2016-09-10
    • 2022-08-10
    • 2019-07-14
    • 2018-07-15
    • 1970-01-01
    • 2020-10-17
    相关资源
    最近更新 更多