Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Grunt file for compiling sass
'use strict';
/*
* Node Module
*/
module.exports = function(grunt) {
// Task configuration
grunt.initConfig({
/**
* Get package meta data
*/
pkg: grunt.file.readJSON('package.json'),
/**
* Sass
*/
sass: {
dist: {
options: {
sourcemap: 'auto',
style: 'compressed',
noCache: true
},
files: {
'resources/css/style.css': 'resources/sass/PPP.scss'
}
}
},
/*
* Watch
*/
watch: {
sass: {
files: ['resources/sass/**/*.{scss,sass}'],
tasks: ['sass:dist']
}
}
});
/*
* Load Grunt Dependencies
*/
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-watch');
/*
* Default Task
*/
grunt.registerTask('default', ['sass:dist', 'watch']);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.