Skip to content

Instantly share code, notes, and snippets.

@atmd83
Last active January 4, 2016 02:59
Show Gist options
  • Save atmd83/8558901 to your computer and use it in GitHub Desktop.
Save atmd83/8558901 to your computer and use it in GitHub Desktop.
Some js code for grunt to use sass and watch. just basic stuff
sass: {
dist: {
options: {
style: 'compressed'
},
files: {
'css/main.css': 'css/main.scss' // css to create : scss the css is created from
}
}
},
watch: {
css: {
files: ['css/*.scss', 'css/partials/*.scss'], // scss files to watch
tasks: ['sass'] // tasks to fire on file change
}
}
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-watch');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment