Skip to content

Commit fe0d34e

Browse files
committed
Restructure svgo options to own variable
1 parent 30fc41f commit fe0d34e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

index.js

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

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

1112
this.cacheable && this.cacheable(true);
1213
this.addDependency(this.resourcePath);

0 commit comments

Comments
 (0)