Skip to content

Commit 50240ee

Browse files
committed
Fix svgo options fallback syntax
1 parent d3f9a23 commit 50240ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ var compiler = require('vue-template-compiler');
55
module.exports = function (content) {
66
var options = loaderUtils.getOptions(this) || {};
77
var svgo = new svg({
8-
plugins: options.svgo || ['removeDoctype', 'removeComments'],
8+
plugins: options.svgo || [{removeDoctype: true}, {removeComments: true}],
99
});
1010

1111
this.cacheable && this.cacheable(true);

0 commit comments

Comments
 (0)