Answer the question
In order to leave comments, you need to log in
How to glue (concatenate) files inscribed in html?
Hey!
Prompt a console (CLI) tool on NodeJS for automatic merging of files specified in HTML.
For example, there is an index.html
it contains:
<!-- concat js/all.js -->
<script src="bower_components/jquery/dist/jquery.js"></script>
<script src="bower_components/bootstrap-sass/assets/javascripts/bootstrap.js"></script>
<!-- endconcat -->
<!-- concat js/all.js -->
<script src="bower_components/jquery/dist/jquery.js"></script>
<script src="bower_components/bootstrap-sass/assets/javascripts/bootstrap.js"></script>
<!-- endconcat -->
<script src="js/.js"></script>
Answer the question
In order to leave comments, you need to log in
Fortunately, I found what I was looking for
https://github.com/digisfera/useref-file
wrapper for userref, which Gulp also has by the way
Gulp and other assemblers are not suitable :(
many small projects, it is expensive to produce node_modules and other files everywhere, and for a long time
Procreate? And gitignore was not taught to do unnecessary things?)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question