Skip to content

Commit 752de24

Browse files
committed
fix: insert rules at the end of stylesheet
1 parent e42a692 commit 752de24

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ exports.create = function (config) {
5858

5959
renderer.putRaw = function (rawCssRule) {
6060
if (process.env.NODE_ENV === 'production') {
61-
renderer.sh.sheet.insertRule(rawCssRule, 0);
61+
var sheet = renderer.sh.sheet;
62+
sheet.insertRule(rawCssRule, sheet.cssRules.length);
6263
} else {
6364
renderer.sh.appendChild(document.createTextNode(rawCssRule));
6465
}

0 commit comments

Comments
 (0)