From d2d904be7fc214f1c89c2d5134678f0cdfda802a Mon Sep 17 00:00:00 2001 From: Andrew Miner Date: Wed, 4 May 2016 20:20:44 -0700 Subject: [PATCH] Don't override index.html from prerendered pages --- Gruntfile.coffee | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Gruntfile.coffee b/Gruntfile.coffee index 83fc58a26..3099d884d 100644 --- a/Gruntfile.coffee +++ b/Gruntfile.coffee @@ -54,7 +54,7 @@ module.exports = (grunt)-> mode: 'gzip' files: [ {expand: true, cwd:'./build/static', src:'**/*.css', dest:'./dist/'} - {expand: true, cwd:'./build/static', src:'**/*.html', dest:'./dist/'} + {expand: true, cwd:'./build/static', src:['**/*.html', '!**/index.html'], dest:'./dist/'} {expand: true, cwd:'./build/static', src:'**/*.ugly.js', dest:'./dist/', ext: '.js'} {expand: true, cwd:'./build/static', src:'**/*.json', dest:'./dist/'} {expand: true, cwd:'./build/static', src:'**/*.ttf', dest:'./dist/'} @@ -77,7 +77,10 @@ module.exports = (grunt)-> ] build_to_dist: files: [ - {expand:true, cwd:'./build/static/', src:['**/*', '!**/*.map', '!**/*.js'], dest:'./dist'} + expand: true + cwd: './build/static/' + src: ['**/*', '!**/*.map', '!**/*.js', '!index.html'] + dest: './dist' ] common_source: files: [