From fbad068aeb229fd3dd2a3004879584c728fed735 Mon Sep 17 00:00:00 2001 From: Matias Niemelä Date: Thu, 25 Jul 2013 01:55:13 -0400 Subject: 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 --- lib/grunt/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/grunt/utils.js b/lib/grunt/utils.js index 9d51e81c..97beb71b 100644 --- a/lib/grunt/utils.js +++ b/lib/grunt/utils.js @@ -85,7 +85,7 @@ module.exports = { .replace(/\\/g, '\\\\') .replace(/'/g, "\\'") .replace(/\r?\n/g, '\\n'); - return "angular.element(document).find('head').append('');"; + return "angular.element(document).find('head').prepend('');"; } }, -- cgit v1.2.3