Created
January 17, 2014 18:03
-
-
Save wihodges/8478326 to your computer and use it in GitHub Desktop.
Foundation 5 + Statamic Theme Gruntfile
This file contains 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
module.exports = function(grunt) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
sass: { | |
options: { | |
includePaths: ['bower_components/foundation/scss'] | |
}, | |
dist: { | |
options: { | |
outputStyle: 'compressed' | |
}, | |
files: { | |
'css/app.css': 'scss/app.scss' | |
} | |
} | |
}, | |
watch: { | |
grunt: { files: ['Gruntfile.js'] }, | |
sass: { | |
files: 'scss/**/*.scss', | |
tasks: ['sass'] | |
}, | |
livereload: { | |
files: [ | |
'*.html', | |
'*.php', | |
'js/**/*.{js,json}', | |
'css/*.css', | |
'img/**/*.{png,jpg,jpeg,gif,webp,svg}', | |
'../../_content/**', | |
'templates/**', | |
'partials/**' | |
], | |
options: { | |
livereload: true | |
} | |
} | |
} | |
}); | |
grunt.loadNpmTasks('grunt-sass'); | |
grunt.loadNpmTasks('grunt-contrib-watch'); | |
grunt.registerTask('build', ['sass']); | |
grunt.registerTask('default', ['build','watch']); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment