mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
fix(grunt): change css wrapping to prepend styles to the top of the head tag
angular.css is used by the utils.js CSS wrap operation, but ng-hide or any other CSS styles present in angular.css cannot be overridden unless the styles appear before the stylesheet is in place. This fix allows for this to work
This commit is contained in:
parent
6031f1db51
commit
fbad068aeb
1 changed files with 1 additions and 1 deletions
|
|
@ -85,7 +85,7 @@ module.exports = {
|
|||
.replace(/\\/g, '\\\\')
|
||||
.replace(/'/g, "\\'")
|
||||
.replace(/\r?\n/g, '\\n');
|
||||
return "angular.element(document).find('head').append('<style type=\"text/css\">" + css + "</style>');";
|
||||
return "angular.element(document).find('head').prepend('<style type=\"text/css\">" + css + "</style>');";
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue