pressbooks aldine theme the theme used for the front page or default book
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

65 lines
1.0 KiB

module.exports = function( grunt ) {
'use strict';
grunt.initConfig({
// Setting folder templates.
dirs: {
css: 'scss'
},
// Compile all .scss files.
sass: {
compile: {
options: {
sourcemap: 'none',
loadPath: require( 'node-bourbon' ).includePaths
},
files: [{
expand: true,
cwd: '<%= dirs.css %>/',
src: ['*.scss'],
dest: './',
ext: '.css'
}]
}
},
// Minify all .css files.
cssmin: {
minify: {
expand: true,
cwd: './',
src: [
'*.css',
'!*.min.css'
],
dest: './',
ext: '.min.css'
}
},
// Watch changes for assets.
watch: {
css: {
files: ['<%= dirs.css %>/*.scss'],
tasks: ['sass', 'cssmin']
}
}
});
// Load NPM tasks to be used here
grunt.loadNpmTasks( 'grunt-contrib-sass' );
grunt.loadNpmTasks( 'grunt-contrib-cssmin' );
grunt.loadNpmTasks( 'grunt-contrib-watch' );
// Register tasks
grunt.registerTask( 'default', [
'css'
]);
grunt.registerTask( 'css', [
'sass',
'cssmin'
]);
};