This repository has been archived on 2020-05-08. You can view files and clone it, but cannot push or open issues or pull requests.
understrap/gruntfile.js

46 lines
1.4 KiB
JavaScript
Executable File

module.exports = function(grunt) {
//2. Project configuration.
grunt.initConfig({
//define what to do with the SASS process
sass: { // Task
dev: { // Target
options: { // Target options
style: 'expanded',
sourcemap: 'none'
},
files: [{
src: ['sass/theme.scss'],
dest: 'css/theme.css',
ext: '.css'
}]
},
dist: { // Target
options: { // Target options
style: 'compressed',
sourcemap: 'none'
},
files: [{
src: ['sass/theme.scss'],
dest: 'css/theme.min.css',
ext: '.css'
}]
}
},
watch: {
css: {
files: ['sass/**/*.scss'],
tasks: ['sass']
}
}
});
//1. load task libraries for use
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-watch');
//3. register a named task ( 'process' ) that runs Grunt processes ( 'imagemin', 'concat' )
grunt.registerTask( 'process', [ 'sass:dev', 'sass:dist' ] );
};