Skip to content

Commit e2dbb2d

Browse files
authored
webpack 4 compatibility
1 parent 8028617 commit e2dbb2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/style-rewriter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ module.exports = function (css, map) {
3333
var cb = this.async()
3434

3535
var query = loaderUtils.getOptions(this) || {}
36-
var options = this.options.vue || {}
36+
var options = this.options && this.options.vue || {}
3737
var autoprefixOptions = options.autoprefixer
3838
var postcssOptions = options.postcss
3939

@@ -58,7 +58,7 @@ module.exports = function (css, map) {
5858
autoprefixOptions = assign(
5959
{},
6060
// also respect autoprefixer-loader options
61-
this.options.autoprefixer,
61+
this.options && this.options.autoprefixer,
6262
autoprefixOptions
6363
)
6464
var autoprefixer = require('autoprefixer')(autoprefixOptions)

0 commit comments

Comments
 (0)