re-integration of grunt
This commit is contained in:
parent
24c1cde9c6
commit
694fd64bd3
4 changed files with 55 additions and 63 deletions
40
js/Gruntfile.js
Normal file
40
js/Gruntfile.js
Normal file
|
@ -0,0 +1,40 @@
|
|||
module.exports = function(grunt) {
|
||||
|
||||
grunt.initConfig({
|
||||
imagemin: {
|
||||
dynamic: {
|
||||
files: [{
|
||||
expand: true,
|
||||
cwd: 'img/',
|
||||
src: ['*.{png,jpg,gif}'],
|
||||
dest: 'img/'
|
||||
}]
|
||||
}
|
||||
},
|
||||
sass: {
|
||||
dist: {
|
||||
options: {
|
||||
style: 'compressed'
|
||||
},
|
||||
files: { 'style.css': 'css/style.scss' }
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
css: {
|
||||
files: ['css/*.scss'],
|
||||
tasks: ['sass'],
|
||||
options: {
|
||||
livereload: true
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
grunt.loadNpmTasks('grunt-contrib-imagemin');
|
||||
grunt.loadNpmTasks('grunt-contrib-sass');
|
||||
grunt.loadNpmTasks('grunt-contrib-watch');
|
||||
|
||||
grunt.registerTask('default', ['imagemin', 'sass', 'watch']);
|
||||
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue