A
A
Andrey Kvartsov2018-02-08 09:34:16
npm
Andrey Kvartsov, 2018-02-08 09:34:16

How to properly build js on Gulp?

I have 10 folders with blocks, each contains a pug file, scss and js. So here's how to properly style js for each of the blocks?
Is it correct to do this:

$(document).ready(function () {
   ...
});

In this case, after building 10 files, there will be something like:
$(document).ready(function(){...});$(document).ready(function(){...});$(document).ready(function(){...});$(document).ready(function(){...});$(document).ready(function(){...});$(document).ready(function(){...});$(document).ready(function(){...});$(document).ready(function(){...});$(document).ready(function(){...});$(document).ready(function(){...});

Is it correct? And if not, how to do it right?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question