mirror of
https://github.com/jgthms/bulma
synced 2026-03-15 10:14:29 -07:00
19 lines
458 B
JavaScript
19 lines
458 B
JavaScript
|
|
var Metalsmith = require('metalsmith');
|
||
|
|
var filter = require('metalsmith-filter');
|
||
|
|
var writemetadata = require('metalsmith-writemetadata');
|
||
|
|
|
||
|
|
var regex = '**/*-variables.sass';
|
||
|
|
// var regex = '**/*.sass';
|
||
|
|
var plugin = require('./read-sass-variables');
|
||
|
|
|
||
|
|
Metalsmith(__dirname)
|
||
|
|
.source('../../sass')
|
||
|
|
.destination('./output')
|
||
|
|
.clean(true)
|
||
|
|
.use(filter(regex))
|
||
|
|
.use(plugin())
|
||
|
|
.use(writemetadata())
|
||
|
|
.build(function(err) {
|
||
|
|
if (err) throw err;
|
||
|
|
});
|