Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4124702
.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/v2.8.0/lib/stringifier.js#L41 for available 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
Wed, Aug 19, 07:01 (2 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
f8/76/0a5c66613635556d8a57b68a7e41
Default Alt Text
.svgo.config.js (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment