Kevin 29b9a0c50c clean && clean html base | 4 years ago | |
---|---|---|
.. | ||
node_modules | 4 years ago | |
LICENSE.md | 4 years ago | |
README.md | 4 years ago | |
index.d.ts | 4 years ago | |
index.js | 4 years ago | |
package.json | 4 years ago |
NPM module for concatenating files and generating source maps.
var concat = new Concat(true, 'all.js', '\n');
concat.add(null, "// (c) John Doe");
concat.add('file1.js', file1Content);
concat.add('file2.js', file2Content, file2SourceMap);
var concatenatedContent = concat.content;
var sourceMapForContent = concat.sourceMap;
Initialize a new concat object.
Parameters:
Add a file to the output file.
Parameters:
The resulting concatenated file content (Buffer).
The resulting source map of the concatenated files (string).