.. | |||
LICENSE.md | 16 days ago | ||
README.md | 16 days ago | ||
index.d.ts | 16 days ago | ||
index.js | 16 days ago | ||
package.json | 16 days 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).