2023-10-21 19:27:18 +08:00
|
|
|
'use strict';
|
2023-11-18 19:56:59 +08:00
|
|
|
|
|
|
|
// https://www.mediawiki.org/wiki/Manual:Coding_conventions/SVG#Exemplified_safe_configuration
|
2022-11-20 15:57:41 +08:00
|
|
|
module.exports = {
|
2023-11-18 19:56:59 +08:00
|
|
|
js2svg: {
|
|
|
|
eol: 'lf',
|
|
|
|
finalNewline: false,
|
|
|
|
indent: '\t'
|
|
|
|
},
|
|
|
|
multipass: true,
|
2023-08-24 11:32:45 +08:00
|
|
|
plugins: [
|
|
|
|
{
|
|
|
|
name: 'preset-default',
|
|
|
|
params: {
|
|
|
|
overrides: {
|
2023-11-18 19:56:59 +08:00
|
|
|
removeViewBox: false
|
2023-08-24 11:32:45 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
'removeRasterImages',
|
|
|
|
'sortAttrs'
|
2023-11-18 19:56:59 +08:00
|
|
|
]
|
2023-08-24 11:32:45 +08:00
|
|
|
};
|