Answer the question
In order to leave comments, you need to log in
Separation into libraries and own scripts - how?
So it goes.
https://github.com/alexfedoseev/js-app-starter - I'm looking at an example of one dude's assembly and I like it, I want to remake it for myself and use it.
But.
In scripts, he uses jQuery, while jQuery is not connected anywhere on the page, i.e. he compiles both his scripts and libraries into one file, but I want to separate it - how to do it?
For example, the output needs a file with libraries - vendor.js and a file with scripts - app.js
Answer the question
In order to leave comments, you need to log in
This build uses browserify and compiles everything into one file because there is only 1 entry point.
If I understand correctly, then an additional bundle can be specified in the array here
https ://github.com/alexfedoseev/js-app-starter/blo...
in one bundle you will have library imports and the other bundle will contain your own modules
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question