[6a3a178] | 1 | 'use strict';
|
---|
| 2 |
|
---|
| 3 | const { createPreset } = require('../lib/svgo/plugins.js');
|
---|
| 4 |
|
---|
| 5 | const removeDoctype = require('./removeDoctype.js');
|
---|
| 6 | const removeXMLProcInst = require('./removeXMLProcInst.js');
|
---|
| 7 | const removeComments = require('./removeComments.js');
|
---|
| 8 | const removeMetadata = require('./removeMetadata.js');
|
---|
| 9 | const removeEditorsNSData = require('./removeEditorsNSData.js');
|
---|
| 10 | const cleanupAttrs = require('./cleanupAttrs.js');
|
---|
| 11 | const mergeStyles = require('./mergeStyles.js');
|
---|
| 12 | const inlineStyles = require('./inlineStyles.js');
|
---|
| 13 | const minifyStyles = require('./minifyStyles.js');
|
---|
| 14 | const cleanupIDs = require('./cleanupIDs.js');
|
---|
| 15 | const removeUselessDefs = require('./removeUselessDefs.js');
|
---|
| 16 | const cleanupNumericValues = require('./cleanupNumericValues.js');
|
---|
| 17 | const convertColors = require('./convertColors.js');
|
---|
| 18 | const removeUnknownsAndDefaults = require('./removeUnknownsAndDefaults.js');
|
---|
| 19 | const removeNonInheritableGroupAttrs = require('./removeNonInheritableGroupAttrs.js');
|
---|
| 20 | const removeUselessStrokeAndFill = require('./removeUselessStrokeAndFill.js');
|
---|
| 21 | const removeViewBox = require('./removeViewBox.js');
|
---|
| 22 | const cleanupEnableBackground = require('./cleanupEnableBackground.js');
|
---|
| 23 | const removeHiddenElems = require('./removeHiddenElems.js');
|
---|
| 24 | const removeEmptyText = require('./removeEmptyText.js');
|
---|
| 25 | const convertShapeToPath = require('./convertShapeToPath.js');
|
---|
| 26 | const convertEllipseToCircle = require('./convertEllipseToCircle.js');
|
---|
| 27 | const moveElemsAttrsToGroup = require('./moveElemsAttrsToGroup.js');
|
---|
| 28 | const moveGroupAttrsToElems = require('./moveGroupAttrsToElems.js');
|
---|
| 29 | const collapseGroups = require('./collapseGroups.js');
|
---|
| 30 | const convertPathData = require('./convertPathData.js');
|
---|
| 31 | const convertTransform = require('./convertTransform.js');
|
---|
| 32 | const removeEmptyAttrs = require('./removeEmptyAttrs.js');
|
---|
| 33 | const removeEmptyContainers = require('./removeEmptyContainers.js');
|
---|
| 34 | const mergePaths = require('./mergePaths.js');
|
---|
| 35 | const removeUnusedNS = require('./removeUnusedNS.js');
|
---|
| 36 | const sortDefsChildren = require('./sortDefsChildren.js');
|
---|
| 37 | const removeTitle = require('./removeTitle.js');
|
---|
| 38 | const removeDesc = require('./removeDesc.js');
|
---|
| 39 |
|
---|
| 40 | const presetDefault = createPreset({
|
---|
| 41 | name: 'presetDefault',
|
---|
| 42 | plugins: [
|
---|
| 43 | removeDoctype,
|
---|
| 44 | removeXMLProcInst,
|
---|
| 45 | removeComments,
|
---|
| 46 | removeMetadata,
|
---|
| 47 | removeEditorsNSData,
|
---|
| 48 | cleanupAttrs,
|
---|
| 49 | mergeStyles,
|
---|
| 50 | inlineStyles,
|
---|
| 51 | minifyStyles,
|
---|
| 52 | cleanupIDs,
|
---|
| 53 | removeUselessDefs,
|
---|
| 54 | cleanupNumericValues,
|
---|
| 55 | convertColors,
|
---|
| 56 | removeUnknownsAndDefaults,
|
---|
| 57 | removeNonInheritableGroupAttrs,
|
---|
| 58 | removeUselessStrokeAndFill,
|
---|
| 59 | removeViewBox,
|
---|
| 60 | cleanupEnableBackground,
|
---|
| 61 | removeHiddenElems,
|
---|
| 62 | removeEmptyText,
|
---|
| 63 | convertShapeToPath,
|
---|
| 64 | convertEllipseToCircle,
|
---|
| 65 | moveElemsAttrsToGroup,
|
---|
| 66 | moveGroupAttrsToElems,
|
---|
| 67 | collapseGroups,
|
---|
| 68 | convertPathData,
|
---|
| 69 | convertTransform,
|
---|
| 70 | removeEmptyAttrs,
|
---|
| 71 | removeEmptyContainers,
|
---|
| 72 | mergePaths,
|
---|
| 73 | removeUnusedNS,
|
---|
| 74 | sortDefsChildren,
|
---|
| 75 | removeTitle,
|
---|
| 76 | removeDesc,
|
---|
| 77 | ],
|
---|
| 78 | });
|
---|
| 79 |
|
---|
| 80 | module.exports = presetDefault;
|
---|