我在谷歌上搜索过,但没有找到任何有用的链接。我正在集成AdminLTE和laravel 5.6,而AdminLTE需要bootstrape 3和laravel 4。所以,我想要从4降级到Bootstrape 3。
发布于 2018-08-31 01:33:07
如果有人需要这个的话。
以下是步骤:
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');
希望这能有所帮助!
https://stackoverflow.com/questions/50678711
复制相似问题