File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ var postcss = require('postcss')
2
2
var selectorParser = require ( 'postcss-selector-parser' )
3
3
var hash = require ( 'hash-sum' )
4
4
var loaderUtils = require ( 'loader-utils' )
5
+ var assign = require ( 'object-assign' )
5
6
6
7
var currentId
7
8
var addId = postcss . plugin ( 'add-id' , function ( ) {
@@ -42,7 +43,12 @@ module.exports = function (css) {
42
43
processors . push ( addId )
43
44
}
44
45
if ( autoprefixOptions !== false ) {
45
- autoprefixOptions = autoprefixOptions || { remove : false }
46
+ autoprefixOptions = assign (
47
+ { } ,
48
+ // also respect autoprefixer-loader options
49
+ this . options . autoprefixer ,
50
+ autoprefixOptions
51
+ )
46
52
var autoprefixer = require ( 'autoprefixer' ) ( autoprefixOptions )
47
53
processors . push ( autoprefixer )
48
54
}
You can’t perform that action at this time.
0 commit comments