forked from github.com/GenderDysphoria.fyi
Moved new build process out of gulp folder
This commit is contained in:
16
build/svg.js
Normal file
16
build/svg.js
Normal file
@@ -0,0 +1,16 @@
|
||||
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;
|
||||
};
|
||||
Reference in New Issue
Block a user