Answer the question
In order to leave comments, you need to log in
Should styles be collected in 1 file or split into several when connecting to different HTML documents?
On the site , the pages are presented in the form of landings,
I divided each landing into blocks and each block has: its own html, its own less and its own js
for example:
block-offer.html
block-offer.less
block-offer.js
then with the power of gulp I this is all I collect
, it turns out such a structure
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<link rel="stylesheet" href="lending.dist.css">
</head>
<body>
тут html
<script src="lending.dist.js"></script>
</body>
</html>
Answer the question
In order to leave comments, you need to log in
For landing, it is advisable to connect a separate style file, due to the purpose of the page itself - usually the visitor must perform an action directly on it, and not walk further.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question