Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F2752848
.svgo.config.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
.svgo.config.js
View Options
/**
* SVGO Configuration
* Compatible to v3.0.0+
* Recommended options from:
* https://www.mediawiki.org/wiki/Manual:Coding_conventions/SVG#Exemplified_safe_configuration
*/
'use strict'
;
module
.
exports
=
{
plugins
:
[
{
// Set of built-in plugins enabled by default.
name
:
'preset-default'
,
params
:
{
overrides
:
{
cleanupIds
:
false
,
removeDesc
:
false
,
removeTitle
:
false
,
removeViewBox
:
false
,
// If the SVG doesn't start with an XML declaration, then its MIME type will
// be detected as "text/plain" rather than "image/svg+xml" by libmagic and,
// consequently, MediaWiki's CSSMin CSS minifier. libmagic's default database
// currently requires that SVGs contain an XML declaration:
// https://github.com/threatstack/libmagic/blob/master/magic/Magdir/sgml#L5
removeXMLProcInst
:
false
}
}
},
'removeRasterImages'
,
'sortAttrs'
],
// Set whitespace according to Wikimedia Coding Conventions.
// @see https://github.com/svg/svgo/blob/main/lib/svgo/coa.js#L194 for more config options
js2svg
:
{
eol
:
'lf'
,
finalNewline
:
true
,
// Configure the indent to tabs (default 4 spaces) used by `--pretty` here.
indent
:
'\t'
,
pretty
:
true
},
multipass
:
true
};
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jul 3, 20:27 (1 d, 13 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
d3/e4/5882fd302eb375a9c94e5174907b
Default Alt Text
.svgo.config.js (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment