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 8028617 commit e2dbb2dCopy full SHA for e2dbb2d
lib/style-rewriter.js
@@ -33,7 +33,7 @@ module.exports = function (css, map) {
33
var cb = this.async()
34
35
var query = loaderUtils.getOptions(this) || {}
36
- var options = this.options.vue || {}
+ var options = this.options && this.options.vue || {}
37
var autoprefixOptions = options.autoprefixer
38
var postcssOptions = options.postcss
39
@@ -58,7 +58,7 @@ module.exports = function (css, map) {
58
autoprefixOptions = assign(
59
{},
60
// also respect autoprefixer-loader options
61
- this.options.autoprefixer,
+ this.options && this.options.autoprefixer,
62
autoprefixOptions
63
)
64
var autoprefixer = require('autoprefixer')(autoprefixOptions)
0 commit comments