Skip to content

Instantly share code, notes, and snippets.

@rainbowstudio
Created March 18, 2014 22:10
Show Gist options
  • Save rainbowstudio/9630845 to your computer and use it in GitHub Desktop.
Save rainbowstudio/9630845 to your computer and use it in GitHub Desktop.
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
sass: {
options: {
includePaths: [
'bower_components/foundation/scss',
require('node-bourbon').includePaths
]
},
dist: {
options: {
//outputStyle: 'compressed'
outputStyle: 'nested',
sourceComments: 'map'
},
files: {
'css/styles.css': 'scss/styles.scss'
}
}
},
uglify: {
general: {
files: {
'js/general.min.js': [// Fchier de sortie
'bower_components/foundation/js/foundation/foundation.js',
'bower_components/foundation/js/foundation/foundation.topbar.js',
'js/app.js'
]
}
}
},
watch: {
grunt: { files: ['Gruntfile.js'] },
sass: {
files: 'scss/**/*.scss',
tasks: ['sass']
}
// ,
// uglify: {
// files: ['js/**/*.js', '!js/general.min.js'],
// tasks: ['uglify']
// }
}
});
grunt.loadNpmTasks('grunt-sass');
grunt.loadNpmTasks('grunt-contrib-uglify');
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