module.exports = function(grunt) { | |
// Project configuration. | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
uglify: { | |
options: { | |
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n' | |
}, | |
build: { | |
src: 'content/themes/rachelcruze/assets/js/app.js', | |
dest: 'content/themes/rachelcruze/assets/js/app.min.js', | |
} | |
}, | |
sass: { | |
dist: { | |
options: { | |
loadPath: require('node-bourbon').includePaths, | |
style: 'compact' | |
}, | |
files: { | |
'content/themes/rachelcruze/assets/css/screen.css': 'content/themes/rachelcruze/assets/sass/screen.scss' | |
} | |
} | |
}, | |
watch: { | |
css: { | |
files: '**/*.scss', | |
tasks: ['sass'] | |
} | |
} | |
}); | |
// Load the plugin that provides the "uglify" task. | |
grunt.loadNpmTasks('grunt-contrib-uglify'); | |
grunt.loadNpmTasks('grunt-contrib-sass'); | |
grunt.loadNpmTasks('grunt-contrib-watch'); | |
// Default task(s). | |
grunt.registerTask('production', ['uglify', 'sass']); | |
grunt.registerTask('dev', ['watch']); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment