npm install --save metalsmith-concat-convention
If you are using the command-line version of Metalsmith, you can install via npm, and then add the
metalsmith-concat-convention key to your
If you are using the JS Api for Metalsmith, then you can require the module and add it to your
var concat = ;metalsmith;
Each concatenation is handled through naming the destination file
<name>.concat. The file's metadata options are passed off to
metalsmith-concat to output the concatenated files. All
metalsmith-concat options apply, aside from
output, which is provided by the filename itself.
---files:- script1.js- script2.jsinsertNewLine: false---// This is the collection of all scripts.
The above will result in
script2.js, along with the ending content comment.