Kevin 29b9a0c50c clean && clean html base | 4 anni fa | |
---|---|---|
.. | ||
node_modules | 4 anni fa | |
LICENSE.md | 4 anni fa | |
README.md | 4 anni fa | |
index.d.ts | 4 anni fa | |
index.js | 4 anni fa | |
package.json | 4 anni fa |
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).