Answer the question
In order to leave comments, you need to log in
How to merge js or css files into one on a clean node?
Gentlemen, I accidentally stumbled upon a topic about nodes and the work of a packager was described there, but on a clean node it is possible or how to combine a bunch of files of the same type into one?
Answer the question
In order to leave comments, you need to log in
Combine all *.js files into one:
var exec = require('child_process').exec;
exec("cat *.js > concat.js", function (error, stdout, stderr) {
console.log('stderr: ' + stderr);
console.log('stdout: ' + stdout);
if (!!error) {
console.error('exec error: ' + error);
}
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question