Split plugins

This commit is contained in:
Jeremy Thomas
2018-06-16 19:58:58 +01:00
parent 7442c980e5
commit ace4c58fc7
9 changed files with 156 additions and 40 deletions

13
docs/scripts/03-other.js Normal file
View File

@@ -0,0 +1,13 @@
const Metalsmith = require('metalsmith');
const filter = require('metalsmith-filter');
const regex_sass = '**/*.sass';
const other_plugin = require('./plugins/03-read-other-variables');
Metalsmith(__dirname)
.source('../../sass')
.use(filter(regex_sass))
.use(other_plugin())
.build(function(err) {
if (err) throw err;
});