Should I copy the bootstrap folder to every new project?

This might be a dumb question, but I downloaded Bootstrap 3 to create a new site.

Am I suggesting / Best to copy the entire Bootstrap folder to the folder of the new website? And then this will be the easiest way to load the server in the end? And do it for every new project?

Or should I just leave one copy in the Bootstrap 3 folder and specify it with my code?

I searched everywhere for this and did not seem to find a good answer, maybe this is just obvious to everyone. Thanks for any help!

+4
source share
1 answer

CDN ( ) Bootstrap.

<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>

, . , . , http://example.com/, , js css, :

<link href="/css/bootstrap.min.css" rel="stylesheet" />
<script src="/js/bootstrap.min.js"></script>

/ URL-, , domain. HTML, , ( ).

+7

Source: https://habr.com/ru/post/1607912/


All Articles