Setup Grunt to compile and autoprefix the SASS
Type `npm install` to install all dependencies. Type `grunt` everytime you want to rebuild the css.
This commit is contained in:
25
Gruntfile.js
Normal file
25
Gruntfile.js
Normal file
@@ -0,0 +1,25 @@
|
||||
module.exports = function(grunt) {
|
||||
grunt.initConfig({
|
||||
pkg: grunt.file.readJSON('package.json'),
|
||||
|
||||
sass: {
|
||||
dist: {
|
||||
options: {
|
||||
style: 'compressed'
|
||||
},
|
||||
files: {
|
||||
'blender-bfct/application/static/assets/css/main.css': 'blender-bfct/application/static/assets/sass/main.sass'
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
autoprefixer: {
|
||||
no_dest: { src: 'blender-bfct/application/static/assets/css/main.css' }
|
||||
}
|
||||
});
|
||||
|
||||
grunt.loadNpmTasks('grunt-contrib-sass');
|
||||
grunt.loadNpmTasks('grunt-autoprefixer');
|
||||
|
||||
grunt.registerTask('default', ['sass', 'autoprefixer']);
|
||||
};
|
Reference in New Issue
Block a user