File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed 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')
22var selectorParser = require ( 'postcss-selector-parser' )
33var hash = require ( 'hash-sum' )
44var loaderUtils = require ( 'loader-utils' )
5+ var assign = require ( 'object-assign' )
56
67var currentId
78var addId = postcss . plugin ( 'add-id' , function ( ) {
@@ -42,7 +43,12 @@ module.exports = function (css) {
4243 processors . push ( addId )
4344 }
4445 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+ )
4652 var autoprefixer = require ( 'autoprefixer' ) ( autoprefixOptions )
4753 processors . push ( autoprefixer )
4854 }
You can’t perform that action at this time.
0 commit comments