Last active
August 29, 2015 14:27
-
-
Save benaadams/6f58e889c9069dfce560 to your computer and use it in GitHub Desktop.
Gulp for Web + Win10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gulp.task( 'javascript-world', function () { | |
| var dest = "./" + project.webroot + '/lib/'; | |
| return gulp.src( ['src/scripts/world-*.js'] ) | |
| // Concat to single file | |
| .pipe( concat( 'world.js' ) ) | |
| // Add Byte order mark | |
| .pipe( addBOM() ) | |
| // output for Win10 UWP App | |
| .pipe( gulp.dest( '../IllyriadGames.Illyriad.Javascript/lib/' ) ) | |
| // pre-gzip for web | |
| .pipe( gzip( { append: false, gzipOptions: { level: 9 } } ) ) | |
| // change extension to detect content-encoding header is needed | |
| .pipe( extname( { ext: 'jsgz' } ) ) | |
| // output for web | |
| .pipe( gulp.dest( dest ) ) | |
| } ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment