Use minify to server assets

This commit is contained in:
Nicolas Le Goff
2013-03-10 16:36:48 +01:00
committed by Romain Neutron
parent 353480032b
commit 90871b9ea5
2 changed files with 33 additions and 26 deletions

View File

@@ -9,6 +9,35 @@
* changes. http://yourdomain/min/builder/ * changes. http://yourdomain/min/builder/
* */ * */
$groups = array( $groups = array(
'authentication_css' => array(
'//assets/normalize-css/normalize.css',
'//assets/bootstrap-switch/static/stylesheets/bootstrapSwitch.css',
'//skins/login/css/style.css',
'//assets/font-awesome/css/font-awesome.css',
),
'authentication' => array(
'//assets/modernizr/modernizr.js',
'//assets/jquery/jquery.js',
'//assets/bootstrap/js/bootstrap-transition.js',
'//assets/bootstrap/js/bootstrap-alert.js',
'//assets/bootstrap/js/bootstrap-modal.js',
'//assets/bootstrap/js/bootstrap-dropdown.js',
'//assets/bootstrap/js/bootstrap-scrollspy.js',
'//assets/bootstrap/js/bootstrap-tab.js',
'//assets/bootstrap/js/bootstrap-tooltip.js',
'//assets/bootstrap/js/bootstrap-popover.js',
'//assets/bootstrap/js/bootstrap-button.js',
'//assets/bootstrap/js/bootstrap-collapse.js',
'//assets/bootstrap/js/bootstrap-carousel.js',
'//assets/bootstrap/js/bootstrap-typeahead.js',
'//assets/bootstrap/js/bootstrap-affix.js',
'//assets/angular/angular.js',
'//assets/angular-ui/build/angular-ui.js',
'//assets/bootstrap-switch/static/js/bootstrapSwitch.js',
'//assets/underscore/underscore.js',
'//skins/login/js/main.js',
'//skins/login/js/angular/app/app.js'
),
'client' => array( 'client' => array(
'//include/jslibs/swfobject/swfobject.js' '//include/jslibs/swfobject/swfobject.js'
, '//include/jslibs/jquery-ui-1.8.17/jquery-ui-i18n.js' , '//include/jslibs/jquery-ui-1.8.17/jquery-ui-i18n.js'

View File

@@ -26,10 +26,8 @@
{% endblock favicon %} {% endblock favicon %}
{% block header_stylesheet %} {% block header_stylesheet %}
<link rel="stylesheet" href="/assets/normalize-css/normalize.css"> <link rel="stylesheet" href="/include/minify/g=authentication_css">
<link rel="stylesheet" href="/assets/bootstrap-switch/static/stylesheets/bootstrapSwitch.css">
<link rel="stylesheet" href="/skins/login/css/style.css">
<link rel="stylesheet" href="/assets/font-awesome/css/font-awesome.css">
<!--[if IE 7]> <!--[if IE 7]>
<link rel="stylesheet" href="/assets/font-awesome/css/font-awesome-ie7.min.css"> <link rel="stylesheet" href="/assets/font-awesome/css/font-awesome-ie7.min.css">
<![endif]--> <![endif]-->
@@ -48,30 +46,10 @@
window.myCustomTags = ['phraseanetAlert']; // optional window.myCustomTags = ['phraseanetAlert']; // optional
</script> </script>
<script src="/assets/angular-ui/build/angular-ui-ieshiv.js"></script> <script src="/assets/angular-ui/build/angular-ui-ieshiv.min.js"></script>
<![endif]--> <![endif]-->
<script src="/assets/modernizr/modernizr.js"></script> <script type="text/javascript" src="/include/minify/g=authentication"></script>
<script src="/assets/jquery/jquery.js"></script>
<script src="/assets/bootstrap/js/bootstrap-transition.js"></script>
<script src="/assets/bootstrap/js/bootstrap-alert.js"></script>
<script src="/assets/bootstrap/js/bootstrap-modal.js"></script>
<script src="/assets/bootstrap/js/bootstrap-dropdown.js"></script>
<script src="/assets/bootstrap/js/bootstrap-scrollspy.js"></script>
<script src="/assets/bootstrap/js/bootstrap-tab.js"></script>
<script src="/assets/bootstrap/js/bootstrap-tooltip.js"></script>
<script src="/assets/bootstrap/js/bootstrap-popover.js"></script>
<script src="/assets/bootstrap/js/bootstrap-button.js"></script>
<script src="/assets/bootstrap/js/bootstrap-collapse.js"></script>
<script src="/assets/bootstrap/js/bootstrap-carousel.js"></script>
<script src="/assets/bootstrap/js/bootstrap-typeahead.js"></script>
<script src="/assets/bootstrap/js/bootstrap-affix.js"></script>
<script src="/assets/angular/angular.js"></script>
<script src="/assets/angular-ui/build/angular-ui.js"></script>
<script src="/assets/bootstrap-switch/static/js/bootstrapSwitch.js"></script>
<script src="/assets/underscore/underscore.js"></script>
<script src="/skins/login/js/main.js"></script>
<script src="/skins/login/js/angular/app/app.js"></script>
{% endblock header_javascript %} {% endblock header_javascript %}
{% endblock header %} {% endblock header %}
</head> </head>