This repository has been archived by the owner on Nov 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Gruntfile.js
44 lines (39 loc) · 1.47 KB
/
Gruntfile.js
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
module.exports = function(grunt) {
// Project Configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
imagemin: {
static: {
options: {
optimizationLevel: 3
},
files: {
'dist/art.jpg': 'src/art.jpg',
'dist/beach_bnw.jpg': 'src/beach_bnw.jpg',
'dist/bungalow.jpg': 'src/bungalow.jpg',
'dist/family_1.jpg': 'src/family_1.jpg',
'dist/family_2.jpg': 'src/family_2.jpg',
'dist/beach_2.jpg': 'src/beach_2.jpg',
'dist/beach.jpg': 'src/beach.jpg',
'dist/eiffel.jpg': 'src/eiffel.jpg',
'dist/football.jpg': 'src/football.jpg',
'dist/seaside.jpg': 'src/seaside.jpg',
'dist/snow.jpg': 'src/snow.jpg',
'dist/trees.jpg': 'src/trees.jpg',
'dist/wedding.jpg': 'src/wedding.jpg',
'dist/whitewater.jpg': 'src/whitewater.jpg'
}
},
dynamic: {
files: [{
expand: true,
cwd: 'src/',
src: ['**/*.{png,jpg,gif}'],
dest: 'dist/'
}]
}
}
});
grunt.loadNpmTasks('grunt-contrib-imagemin');
grunt.registerTask('default', ['imagemin']);
};