Skip to content

Commit

Permalink
Use the default svgo config
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Mar 12, 2021
1 parent f04d828 commit 728b42f
Show file tree
Hide file tree
Showing 17 changed files with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions lib/svg-sprite/transform/svgo.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,7 @@

var svgo = require('svgo'),
_ = require('lodash'),
pretty = require('prettysize'),
defaultPluginConfig = [
{
name: 'inlineStyles',
active: false
}
];
pretty = require('prettysize');

/**
* SVGO transformation
Expand All @@ -30,7 +24,7 @@ var svgo = require('svgo'),
*/
module.exports = function (shape, config, spriter, cb) {
config = _.cloneDeep(config);
config.plugins = svgo.extendDefaultPlugins('plugins' in config ? defaultPluginConfig.concat(config.plugins) : defaultPluginConfig);
config.plugins = 'plugins' in config ? svgo.extendDefaultPlugins([...config.plugins]) : [];
config.plugins.push({
name: 'removeXMLProcInst',
active: !!spriter.config.svg.xmlDeclaration
Expand Down
Binary file modified test/expected/png/css.diagonal.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/expected/png/css.horizontal.centered.html.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/expected/png/css.horizontal.centered.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/expected/png/css.horizontal.mixed.html.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/expected/png/css.horizontal.mixed.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/expected/png/css.horizontal.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/expected/png/css.html.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/expected/png/css.packed.12.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/expected/png/css.packed.aligned.html.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/expected/png/css.packed.aligned.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/expected/png/css.packed.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/expected/png/css.vertical.centered.html.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/expected/png/css.vertical.centered.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/expected/png/css.vertical.mixed.html.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/expected/png/css.vertical.mixed.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/expected/png/css.vertical.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 728b42f

Please sign in to comment.