2020-02-28 10:33:39 -08:00

17 lines
379 B
JavaScript

const glob = require('./lib/glob');
const { ROOT } = require('./resolve');
const actions = require('./actions');
module.exports = exports = async function svgIcons () {
const files = await glob('svg/**/*.svg', { cwd: ROOT });
const tasks = files.map((f) => ({
input: f,
output: 'images/' + f,
action: actions.copy,
nocache: true,
}));
return tasks;
};