Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F2753425
.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
*/
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
Fri, Jul 3, 21:14 (1 d, 1 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
08/8f/bc128b354996f774804c0637fe7a
Default Alt Text
.svgo.config.js (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment