gulp integration
This commit is contained in:
parent
aa573e574c
commit
d0ef06c80a
18 changed files with 86 additions and 126 deletions
37
Gruntfile.js
37
Gruntfile.js
|
@ -1,37 +0,0 @@
|
|||
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', 'css/*/*.scss'],
|
||||
tasks: ['sass']
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
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