Published 1 week ago by frumentius
As straightforward as the title is, I need my laravel project, twitter bootsrap to be downgraded to version 3.3.7 how to do that?
I've searched in the forum, the only answer I could found was to change the bootstrap devDependencies in package.json, but that simply did not work.
Please help. thank you.
I've just tried 36864 answer and cmd return error File to import not found or unreadable: ~bootstrap/scss/bootstrap in C:\wamp\www\tcbs\resources\assets\sass\app.scss maybe because unlike bootstrap 4, bootstrap 3 do not have that path.
And for Resin answer, doing that is the same with what i was doing changing the package.json file an runnig npm install.
So still not solving the problem.
hi @mvd, what I mean it didn't work is because after I run the npm install and check the /public/css/app.css it didn't change to bootstrap 3, while if changing between 4.0.0 to 4.1.1 or vice versa after running npm install, the /public/css/app.css also changed accordingly. an simply testing making a view, when I refresh the browser, from the apperance you can tell it is still bootstrap 4.
No, before you stated "change your scss/app.scss files to change any reference to bootstrap to the 3.3.7 equivalent, it would be bootstrap-sass I believe."
So I searched for scss or sass file, but there is none, instead I found a less file, so I tried to change the path to the less file and run npm run dev but still got the same error "File to import not found or unreadable:"
You didn't answer my questions.
Are you trying to use the
less version of bootstrap or the
bootstrap 3 used
less as default, but there's a
bootstrap-sass package to offer a
sass version, which is what was used by laravel before the upgrade to bootstrap 4. This is not included in the
Hi @cronix, but isnt that redundant to have two active bootstrap in my project, I am thinking of replacing the default bootstrap which is version 4 to version 3, so that the version 4 completely gone from my project.
Is it possible to simply just copy bootstrap 3 CSS code, and paste it in the content of /public/css/app.css? But then one should also replace the js file which I don't know where default bootstrap.js file placed in laravel folder structure. Is it inside the /public/js/app.js (which I highly doubt)?