Skip to content

Commit 30fc41f

Browse files
committed
Refactor to fit more closely with standard svgo implementation in svgo-loader and image-webpack-loader
1 parent 50240ee commit 30fc41f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ var loaderUtils = require('loader-utils');
33
var compiler = require('vue-template-compiler');
44

55
module.exports = function (content) {
6-
var options = loaderUtils.getOptions(this) || {};
7-
var svgo = new svg({
8-
plugins: options.svgo || [{removeDoctype: true}, {removeComments: true}],
9-
});
6+
var options = loaderUtils.getOptions(this) || {
7+
plugins: [{removeDoctype: true}, {removeComments: true}],
8+
};
9+
var svgo = new svg(options);
1010

1111
this.cacheable && this.cacheable(true);
1212
this.addDependency(this.resourcePath);

0 commit comments

Comments
 (0)