Skip to content

Commit 4aebfb2

Browse files
committed
Build: Added target to generate image zip file
1 parent 250971c commit 4aebfb2

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

Gruntfile.js

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,8 @@ module.exports = function( grunt ) {
186186

187187
distZipOut: path.join( dist, name + "<%= versionSuffix %>.zip" ),
188188

189+
imagesZipOut: path.join( dist, name + ".images<%= versionSuffix %>.zip" ),
190+
189191
googleCDNZipOut: path.join( "<%= dirs.cdn.google %>","<%= files.zipFileName %>" )
190192
};
191193

@@ -567,6 +569,18 @@ module.exports = function( grunt ) {
567569
}
568570
]
569571
},
572+
images: {
573+
options: {
574+
archive: "<%= files.imagesZipOut %>"
575+
},
576+
files: [
577+
{
578+
expand: true,
579+
cwd: dist,
580+
src: [ "images/**" ]
581+
}
582+
]
583+
},
570584
"googleCDN": {
571585
options: {
572586
archive: "<%= files.googleCDNZipOut %>"
@@ -784,7 +798,8 @@ module.exports = function( grunt ) {
784798
"css:release",
785799
"copy:images",
786800
"demos",
787-
"compress:dist"
801+
"compress:dist",
802+
"compress:images"
788803
]);
789804
grunt.registerTask( "dist:release", [ "release:init", "dist", "cdn" ] );
790805
grunt.registerTask( "dist:git", [ "dist", "clean:git", "config:copy:git:-git", "copy:git" ] );

0 commit comments

Comments
 (0)