]> source.dussan.org Git - vaadin-framework.git/commitdiff
Provide compressed vaadinPush.js (#18329)
authorArtur Signell <artur@vaadin.com>
Wed, 24 Jun 2015 20:43:31 +0000 (23:43 +0300)
committerVaadin Code Review <review@vaadin.com>
Fri, 26 Jun 2015 11:13:18 +0000 (11:13 +0000)
Change-Id: I81328655f64e78a02bb6d05017374d2d43049111

push/build.xml

index 9a45b86cfee0aa3255787c3f57820f2c597bd9a0..958bd5bf8f7515fcb6319f2a21a1b38d0b60ca7d 100644 (file)
@@ -26,7 +26,9 @@
     <union id="jar.includes">
         <fileset dir="${result.dir}/js">
             <include name="VAADIN/vaadinPush.js" />
+            <include name="VAADIN/vaadinPush.js.gz" />
             <include name="VAADIN/vaadinPush.debug.js" />
+            <include name="VAADIN/vaadinPush.debug.js.gz" />
         </fileset>
     </union>
 
             <arg file="${vaadinPush.js}" />
             <arg file="${vaadinPush.debug.js}" />
         </java>
+        
+        <!-- Gzipped versions -->
+        <gzip src="${vaadinPush.js}" destfile="${vaadinPush.js}.gz" />
+        <gzip src="${vaadinPush.debug.js}" destfile="${vaadinPush.debug.js}.gz" />
     </target>
 
     <target name="jar" depends="vaadinPush.js">