File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Filter options
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Original file line number Diff line number Diff line change @@ -36,9 +36,13 @@ module.exports = function (css, map) {
36
36
var query = loaderUtils . parseQuery ( this . query )
37
37
var options = this . options . vue || { }
38
38
var autoprefixOptions = options . autoprefixer
39
+
40
+ // plugins
39
41
var plugins = options . postcss
40
- ? options . postcss . slice ( ) // make sure to copy it
41
- : [ ]
42
+ if ( typeof plugins === 'function' ) {
43
+ plugins = plugins . call ( this , this )
44
+ }
45
+ plugins = plugins ? plugins . slice ( ) : [ ] // make sure to copy it
42
46
43
47
// scoped css
44
48
if ( query . scoped ) {
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ describe('vue-loader', function () {
34
34
35
35
function getFile ( file , cb ) {
36
36
fs . readFile ( path . resolve ( outputDir , file ) , 'utf-8' , function ( err , data ) {
37
- expect ( err ) . to . be . null
37
+ expect ( err ) . to . be . not . exist
38
38
cb ( data )
39
39
} )
40
40
}
You can’t perform that action at this time.
0 commit comments