-
Notifications
You must be signed in to change notification settings - Fork 7
/
Gruntfile.js
74 lines (72 loc) · 1.6 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
62
63
64
65
66
67
68
69
70
71
72
73
74
'use strict';
module.exports = function(grunt) {
// Load all tasks
require('load-grunt-tasks')(grunt);
// Show elapsed time
require('time-grunt')(grunt);
grunt.initConfig({
sass: {
options: {
loadPath: [
'bower_components/bourbon/dist',
'bower_components/foundation/scss'
]
},
dev: {
options: {
style: 'expanded'
},
files: {
'assets/css/acf-fancy-repeater-field-v5.css': 'assets/scss/acf-fancy-repeater-field-v5.scss'
}
},
build: {
options: {
style: 'compressed'
},
files: {
'assets/css/acf-fancy-repeater-field-v5.min.css': 'assets/scss/acf-fancy-repeater-field-v5.scss'
}
}
},
autoprefixer: {
options: {
browsers: ['last 2 versions', 'ie 8', 'ie 9', 'android 2.3', 'android 4', 'opera 12']
},
dev: {
options: {
map: {
prev: 'assets/css/'
}
},
src: 'assets/css/acf-fancy-repeater-field-v5.css'
},
build: {
src: 'assets/css/acf-fancy-repeater-field-v5.min.css'
}
},
watch: {
sass: {
files: [
'assets/scss/*.scss',
'assets/scss/**/*.scss'
],
tasks: ['sass:dev', 'autoprefixer:dev']
}
}
});
// Register tasks
grunt.registerTask('default', [
'dev'
]);
grunt.registerTask('dev', [
'sass:dev',
'autoprefixer:dev'
]);
grunt.registerTask('build', [
'sass:dev',
'autoprefixer:dev',
'sass:build',
'autoprefixer:build'
]);
};