You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ah...@apache.org on 2018/12/17 09:21:15 UTC

[royale-asjs] 01/04: non-debug uses min.css

This is an automated email from the ASF dual-hosted git repository.

aharui pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit 6730ddb970bfe158e97e779badc584792d814afa
Author: Alex Harui <ah...@apache.org>
AuthorDate: Tue Dec 11 16:10:01 2018 -0800

    non-debug uses min.css
---
 .../src/main/royale/org/apache/royale/utils/UIModuleUtils.as      | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/frameworks/projects/Basic/src/main/royale/org/apache/royale/utils/UIModuleUtils.as b/frameworks/projects/Basic/src/main/royale/org/apache/royale/utils/UIModuleUtils.as
index 12970a1..3077b25 100644
--- a/frameworks/projects/Basic/src/main/royale/org/apache/royale/utils/UIModuleUtils.as
+++ b/frameworks/projects/Basic/src/main/royale/org/apache/royale/utils/UIModuleUtils.as
@@ -36,6 +36,7 @@ package org.apache.royale.utils
 	
     COMPILE::JS
     {
+        import goog.DEBUG;
         import goog.global;
         import org.apache.royale.core.WrappedHTMLElement;   
     }
@@ -185,8 +186,11 @@ package org.apache.royale.utils
 				}
 			}
 			COMPILE::JS {
-                loadCSS(modulePath ? modulePath + "/" + moduleName + ".css" :
-                    moduleName + ".css");
+                var suffix:String = ".min.css";
+                if (goog.DEBUG)
+                    suffix = ".css";
+                loadCSS(modulePath ? modulePath + "/" + moduleName + suffix :
+                    moduleName + suffix);
             }
         }