- added assets_shared submodule - added support for grunt - cleanup of layout.html
32 lines
843 B
JavaScript
32 lines
843 B
JavaScript
module.exports = function(grunt) {
|
|
grunt.initConfig({
|
|
pkg: grunt.file.readJSON('package.json'),
|
|
|
|
sass: {
|
|
dist: {
|
|
options: {
|
|
style: 'compressed'
|
|
},
|
|
files: {
|
|
'public_html/assets/css/main.css': 'public_html/assets/sass/main.sass'
|
|
}
|
|
}
|
|
},
|
|
|
|
autoprefixer: {
|
|
no_dest: { src: 'public_html/assets/css/main.css' }
|
|
},
|
|
|
|
watch: {
|
|
files: ['public_html/assets/sass/main.sass'],
|
|
tasks: ['sass', 'autoprefixer'],
|
|
}
|
|
});
|
|
|
|
grunt.loadNpmTasks('grunt-contrib-sass');
|
|
grunt.loadNpmTasks('grunt-autoprefixer');
|
|
grunt.loadNpmTasks('grunt-contrib-watch');
|
|
|
|
grunt.registerTask('default', ['sass', 'autoprefixer', 'watch']);
|
|
};
|