hubl/Gruntfile.js

37 lines
760 B
JavaScript
Raw Normal View History

2018-03-11 23:42:46 +00:00
/*global module:false*/
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
// Metadata.
pkg: grunt.file.readJSON('package.json'),
// Task configuration.
sass: {
options: {
sourceMap: true
},
dist: {
files: {
2018-03-12 13:49:47 +00:00
'dist/css/<%= pkg.name %>.css': 'src/scss/main.scss'
2018-03-11 23:42:46 +00:00
}
}
},
watch: {
2018-03-17 17:34:32 +00:00
files: ['src/scss/**/*.scss'],
tasks: ['sass'],
2018-03-11 23:42:46 +00:00
}
});
// These plugins provide necessary tasks.
2018-03-17 17:34:32 +00:00
//grunt.loadNpmTasks('grunt-contrib-concat');
2018-03-11 23:42:46 +00:00
grunt.loadNpmTasks('grunt-sass');
//grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
// Default task.
2018-03-17 17:34:32 +00:00
grunt.registerTask('default', ['sass']);
2018-03-11 23:42:46 +00:00
};