Skip to content

Instantly share code, notes, and snippets.

@metakermit
Created March 29, 2015 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save metakermit/efc1304e88392fff408c to your computer and use it in GitHub Desktop.
Save metakermit/efc1304e88392fff408c to your computer and use it in GitHub Desktop.
diff --git a/Gruntfile.js b/Gruntfile.js
index b26f39a..0813089 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -56,7 +56,7 @@ module.exports = function (grunt) {
livereload: '<%= connect.options.livereload %>'
},
files: [
- '<%= yeoman.app %>/{,*/}*.html',
+ '<%= yeoman.app %>/{**/}*.html',
'.tmp/styles/{,*/}*.css',
'<%= yeoman.app %>/images/{,*/}*.{png,jpg,jpeg,gif,webp,svg}'
]
@@ -141,7 +141,7 @@ module.exports = function (grunt) {
dot: true,
src: [
'.tmp',
- '<%= yeoman.dist %>/{,*/}*',
+ '<%= yeoman.dist %>/{**/}*',
'!<%= yeoman.dist %>/.git{,*/}*'
]
}]
@@ -265,7 +265,7 @@ module.exports = function (grunt) {
// Performs rewrites based on filerev and the useminPrepare configuration
usemin: {
- html: ['<%= yeoman.dist %>/{,*/}*.html'],
+ html: ['<%= yeoman.dist %>/{**/}*.html'],
css: ['<%= yeoman.dist %>/styles/{,*/}*.css'],
options: {
assetsDirs: [
@@ -336,7 +336,7 @@ module.exports = function (grunt) {
files: [{
expand: true,
cwd: '<%= yeoman.dist %>',
- src: ['*.html', 'views/{,*/}*.html'],
+ src: ['*.html', 'views/{**/}*.html'],
dest: '<%= yeoman.dist %>'
}]
}
@@ -374,7 +374,7 @@ module.exports = function (grunt) {
'*.{ico,png,txt}',
'.htaccess',
'*.html',
- 'views/{,*/}*.html',
+ 'views/{**/}*.html',
'images/{,*/}*.{webp}',
'styles/fonts/{,*/}*.*'
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment