A Metalsmith plugin to concatenate files.
$ npm install metalsmith-concat
{
"plugins": {
"metalsmith-concat": {
"files": "styles/**/*.css",
"output": "styles/app.css"
}
}
}
var MetalSmith = require('metalsmith');
var concat = require('metalsmith-concat');
Metalsmith(__dirname)
.use(concat{
files: 'styles/**/*.css',
output: 'styles/app.css'
}));
.build();
Type: String
/ Array[string]
Default: '**/*'
This defines which files are concatenated. A string will concatenate files that match the pattern with minimatch. An Array will concatenate files matching filespaths listed as strings in the array.
Type: String
It represents the file where the concatenated content will be outputted. This option is mandatory.
Type: Boolean
Default: false
Whether to keep the files which were concatenated. By default they are not kept and deleted from the build.
-
1.0.0
- Bump stable
-
0.0.2
- Fix an issue with file content
-
0.0.1
- Working plugin
MIT © Aymeric Beaumet