-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathGruntfile.js
More file actions
73 lines (69 loc) · 2.02 KB
/
Gruntfile.js
File metadata and controls
73 lines (69 loc) · 2.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
responsive_images: {
dev: {
options: {
sizes: [{
name: 'small',
width: 767,
quality: 70
},{
name: 'medium',
width: 1008,
quality: 80
},{
name: "large",
width: 1248,
quality: 90
},{
name: "xlarge",
width: 1408,
quality: 90
}]
},
files: [{
expand: true,
src: ['img/banners/nelson-atkins-museum-of-art.jpg',
'img/banners/kansas-city-skyline-sunset.jpg',
'img/banners/kansas-city-skyline-night.jpg',
'img/banners/kansas-city-skyline-day.jpg',
'img/banners/kansas-city-plaza.jpg']
}]
},
speakers: {
options: {
sizes: [{
name: 'small',
height: 100,
quality: 95
}]
},
files: [{
expand: true,
src: [
'img/speakers/aaron-blythe.jpg',
'img/speakers/alicia-cianciolo.jpg',
'img/speakers/michelle-brush.jpg',
'img/speakers/aysylu-greenberg.jpg',
'img/speakers/piero-ferrante.jpg',
'img/speakers/david-greenberg.jpg',
'img/speakers/flavio-percoco.jpg',
'img/speakers/janelle-klein.jpg',
'img/speakers/jenni-syed.jpg',
'img/speakers/john-hughes.jpg',
'img/speakers/jon-moore.jpg',
'img/speakers/laura-ku.jpg',
'img/speakers/mark-allen.jpg',
'img/speakers/sean-cribbs.jpg'
]
}]
}
}
});
// Load the plugin that provides the "responsive_images" task.
grunt.loadNpmTasks('grunt-responsive-images');
// Default task(s).
grunt.registerTask('default', ['responsive_images:dev', 'responsive_images:speakers']);
};