-
Notifications
You must be signed in to change notification settings - Fork 0
/
gruntFile.js
40 lines (34 loc) · 999 Bytes
/
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
module.exports = (grunt) => {
// grunt.registerTask('speak', () => {
// console.log('Im speaking')
// })
// grunt.registerTask('yell', () => {
// console.log('Im yelling')
// })
// grunt.registerTask('default', ['speak', 'yell'])
grunt.initConfig({
concat: {
js: {
src: ['js/1.js', 'js/2.js'],
dest: 'build/js/scripts.js',
},
css: {
src: ['css/main.css', 'css/theme.css'],
dest: 'build/css/styles.css',
},
},
watch: {
js: {
files: ['js/**/*.js'],
tasks: ['concat:js'],
},
css: {
files: ['css/**/*.css'],
tasks: ['concat:css'],
},
},
})
grunt.loadNpmTasks('grunt-contrib-concat')
grunt.loadNpmTasks('grunt-contrib-watch')
grunt.registerTask('default', ['concat', 'watch'])
}