odeonet's avatar

Laravel Bootstrap or through CDN link ?

Hi every one.

First of all I would like to apologize for my poor english because I'm a french guy.

I'm starting to learn Laravel.

Today I would like to integrate Bootstrap in my Laravel project but there is 2 methods like I saw :

    1. with NPM Install with SASS (by the way I got a lot of error - 3 vulneabilities - when I made npm run dev)
    1. with a simple CSS through CDN link

What is the PRO and the CONS of each method ? which one is the best for the performance ?

Thanks for all.

0 likes
4 replies
Sirik's avatar

I would say always use your local sass files

I'll only use a CDN for testing purposes

odeonet's avatar

So you compile your assets with Larave Mix right ?

odeonet's avatar

And what about to use it directly :

<link href="{{ asset('css/bootstrap.min.css') }}" rel="stylesheet">

Please or to participate in this conversation.