forked from civio/onodo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
37 lines (34 loc) · 1.13 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
module.exports = function (grunt) {
// Configure grunt
grunt.initConfig({
// Configure spritesheets
sprite:{
sprite: {
src: './app/assets/images/main/*.png',
dest: './public/images/sprites.png',
destCss: './app/assets/stylesheets/scss/_sprites.scss',
imgPath: '/images/sprites.png',
retinaSrcFilter: './app/assets/images/main/*@2x.png',
retinaDest: './public/images/[email protected]',
retinaImgPath: '/images/[email protected]',
'engineOpts': {
'imagemagick': true
},
},
sprite_home: {
src: './app/assets/images/home/*.png',
dest: './public/images/sprites-home.png',
destCss: './app/assets/stylesheets/scss/_sprites-home.scss',
imgPath: '/images/sprites-home.png',
retinaSrcFilter: './app/assets/images/home/*@2x.png',
retinaDest: './public/images/[email protected]',
retinaImgPath: '/images/[email protected]',
'engineOpts': {
'imagemagick': true
},
}
}
});
// Generate spritesheet with `grunt sprite`
grunt.loadNpmTasks('grunt-spritesmith');
};