]> 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)
committerHenri Sara <hesara@vaadin.com>
Sat, 4 Jul 2015 11:30:25 +0000 (14:30 +0300)
Change-Id: I7dbc866a4f56d4425403f8ffbdaff4d22b2467c4

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">