forked from i-akhmadullin/grunt-styletto
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGruntfile.js
61 lines (54 loc) · 1.55 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// Example grunt.js using styletto task.
module.exports = function(grunt) {
"use strict";
// Project configuration.
grunt.initConfig({
styletto: {
compress: {
files: { 'test/all.css': 'test/all.test.css' },
options: {
compress: false,
base64: 15,
errors: 'alert'
}
},
raw: {
src: ['test/all.css', 'test/includes-search.css'],
dest: 'test/all-raw.test.css',
options: {
errors: {
imports: 'error',
resources: 'error',
processors: 'error'
}
}
},
options: {
base64: false,
compress: false
}
},
jshint: {
all: ['Gruntfile.js', 'tasks/**/*.js'],
options: {
curly: true,
eqeqeq: true,
immed: true,
latedef: true,
newcap: true,
noarg: true,
sub: true,
undef: true,
boss: true,
eqnull: true,
node: true,
es5: true
}
}
});
// Load local tasks.
grunt.loadTasks('tasks');
grunt.loadNpmTasks('grunt-contrib-jshint');
// Default task (only for this example).
grunt.registerTask('default', [ 'jshint' ]);
};