We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30fc41f commit fe0d34eCopy full SHA for fe0d34e
index.js
@@ -3,10 +3,11 @@ var loaderUtils = require('loader-utils');
3
var compiler = require('vue-template-compiler');
4
5
module.exports = function (content) {
6
- var options = loaderUtils.getOptions(this) || {
+ var options = loaderUtils.getOptions(this) || {};
7
+ var svgoOptions = options.svgo || {
8
plugins: [{removeDoctype: true}, {removeComments: true}],
9
};
- var svgo = new svg(options);
10
+ var svgo = new svg(svgoOptions);
11
12
this.cacheable && this.cacheable(true);
13
this.addDependency(this.resourcePath);
0 commit comments