17 lines
379 B
JavaScript
Raw Normal View History

2020-02-28 10:31:13 -08:00
const glob = require('./lib/glob');
2020-02-27 18:57:39 -08:00
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,
2020-02-27 18:57:39 -08:00
}));
return tasks;
};