1
0
mirror of https://github.com/GenderDysphoria/GenderDysphoria.fyi.git synced 2025-11-25 20:42:40 +00:00

Added support for svgs

This commit is contained in:
Jocelyn Badgley (Twipped)
2021-03-22 18:26:13 -07:00
parent 514acab9ee
commit a83bbdd885
5 changed files with 23 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
const path = require('path');
const { pick, each } = require('lodash');
const { pick } = require('lodash');
const actions = require('./actions');
const File = require('./file');
const { TYPE } = require('./resolve');
@@ -56,7 +56,7 @@ module.exports = exports = class Asset extends File {
height,
} ];
if (this.preprocessed) {
if (this.preprocessed || this.ext === '.svg') {
this._tasks = [ {
output: this.out,
input: this.input,