Skip to content

Instantly share code, notes, and snippets.

@skaraman
Last active August 29, 2015 14:01
Show Gist options
  • Save skaraman/b7e64f8a4153d3fe95b3 to your computer and use it in GitHub Desktop.
Save skaraman/b7e64f8a4153d3fe95b3 to your computer and use it in GitHub Desktop.
Gruntfile.js -skaraman
/*global module:false*/
/*Generated initially from grunt-init, heavily inspired by yo webapp*/
module.exports = function(grunt) {
'use strict';
// Time how long tasks take. Can help when optimizing build times
require('time-grunt')(grunt);
// Load grunt config
require('load-grunt-config')(grunt, {
init: true,
data: {
config: {
// Configurable paths
app: 'app',
dist: 'dist'
},
copy: {
dist: {
files: [{
expand: true,
dot: true,
cwd: '<%= config.app %>',
dest: '<%= config.dist %>',
src: [
'**/**.{ico,png,txt,jpg}',
'.htaccess',
'images/{,*/}*.webp',
// '{,*/}*.html',
'styles/fonts/{,*/}*.*',
'lib/famous/**/**.css'
]
}]
}
}
}
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment