gulp-svgmin
Advanced tools
Comparing version 4.0.1 to 4.1.0
@@ -81,4 +81,17 @@ "use strict"; | ||
} else { | ||
// Merge the default plugins list with options.plugins. | ||
config.plugins = (0, _svgo.extendDefaultPlugins)(plugins); | ||
const pluginConfig = { | ||
// Default provided per svgo docs in v2.4.0+ | ||
name: 'preset-default', | ||
params: { | ||
overrides: {} | ||
} | ||
}; // Following format assuming plugins settings are for built ins | ||
for (const plugin of plugins) { | ||
for (const [key, value] of Object.entries(plugin)) { | ||
pluginConfig.params.overrides[key] = value; | ||
} | ||
} | ||
config.plugins = [pluginConfig]; | ||
} | ||
@@ -85,0 +98,0 @@ |
{ | ||
"name": "gulp-svgmin", | ||
"version": "4.0.1", | ||
"version": "4.1.0", | ||
"description": "Minify SVG files with gulp.", | ||
@@ -14,2 +14,3 @@ "license": "MIT", | ||
"scripts": { | ||
"coverage": "nyc --reporter=lcov --reporter=text-summary ava", | ||
"pretest": "xo src tests", | ||
@@ -33,15 +34,15 @@ "prepublishOnly": "del-cli dist && cross-env BABEL_ENV=publish babel src --out-dir dist", | ||
"plugin-error": "^1.0.1", | ||
"svgo": "^2.3.1" | ||
"svgo": "^2.7.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.14.5", | ||
"@babel/core": "^7.14.6", | ||
"@babel/preset-env": "^7.14.7", | ||
"@babel/register": "^7.14.5", | ||
"@babel/cli": "^7.15.7", | ||
"@babel/core": "^7.15.8", | ||
"@babel/preset-env": "^7.15.8", | ||
"@babel/register": "^7.15.3", | ||
"ava": "^3.15.0", | ||
"coveralls": "^3.1.0", | ||
"coveralls": "^3.1.1", | ||
"cross-env": "^7.0.3", | ||
"del-cli": "^4.0.0", | ||
"del-cli": "^4.0.1", | ||
"nyc": "^15.1.0", | ||
"prettier": "^2.3.2", | ||
"prettier": "^2.4.1", | ||
"vinyl": "^2.2.1", | ||
@@ -48,0 +49,0 @@ "xo": "^0.38.2" |
12780
125
Updatedsvgo@^2.7.0