Disable optimization for terminal template
This commit is contained in:
@@ -49,7 +49,7 @@
|
||||
console.debug(`metrics/compute/${login} > render > success`)
|
||||
|
||||
//Optimize rendering
|
||||
if (conf.optimize) {
|
||||
if ((conf.optimize)&&(!q.raw)) {
|
||||
console.debug(`metrics/compute/${login} > optimize`)
|
||||
const svgo = new SVGO({full:true, plugins:[{cleanupAttrs:true}, {inlineStyles:false}]})
|
||||
const {data:optimized} = await svgo.optimize(rendered)
|
||||
|
||||
Reference in New Issue
Block a user