Last active
January 4, 2016 02:59
-
-
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
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
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