File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ module.exports = function(list, options) {
52
52
// By default, add <style> tags to the bottom of the target
53
53
if ( typeof options . insertAt === "undefined" ) options . insertAt = "bottom" ;
54
54
55
- var styles = listToStyles ( list ) ;
55
+ var styles = listToStyles ( list , options ) ;
56
56
addStylesToDom ( styles , options ) ;
57
57
58
58
return function update ( newList ) {
@@ -64,7 +64,7 @@ module.exports = function(list, options) {
64
64
mayRemove . push ( domStyle ) ;
65
65
}
66
66
if ( newList ) {
67
- var newStyles = listToStyles ( newList ) ;
67
+ var newStyles = listToStyles ( newList , options ) ;
68
68
addStylesToDom ( newStyles , options ) ;
69
69
}
70
70
for ( var i = 0 ; i < mayRemove . length ; i ++ ) {
@@ -100,12 +100,12 @@ function addStylesToDom(styles, options) {
100
100
}
101
101
}
102
102
103
- function listToStyles ( list ) {
103
+ function listToStyles ( list , options ) {
104
104
var styles = [ ] ;
105
105
var newStyles = { } ;
106
106
for ( var i = 0 ; i < list . length ; i ++ ) {
107
107
var item = list [ i ] ;
108
- var id = item [ 0 ] ;
108
+ var id = item [ 0 ] + ( options . cssBase || 0 ) ;
109
109
var css = item [ 1 ] ;
110
110
var media = item [ 2 ] ;
111
111
var sourceMap = item [ 3 ] ;
You can’t perform that action at this time.
0 commit comments