-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathGruntfile.js
executable file
·54 lines (53 loc) · 1.27 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
module.exports = function (grunt) {
grunt.initConfig({
uglify: {
options: {
mangle: false,
compress: true
},
target: {
files: {
'app/public/javascripts/scripts.min.js': [
'app/assets/javascripts/vendor/jquery-3.7.1.js',
'app/assets/javascripts/vendor/popper-1.16.1.js',
'app/assets/javascripts/vendor/bootstrap-4.6.2.js',
'app/assets/javascripts/search.js',
'app/assets/javascripts/player.js',
'app/assets/javascripts/lightbox.js'
]
}
}
},
sass: {
options: {
sourcemap: 'none',
style: 'compressed',
noCache: true
},
dist: {
files: {
'app/public/stylesheets/styles.min.css': 'app/assets/sass/styles.scss'
}
}
},
watch: {
js: {
files: 'app/assets/javascripts/**/*.js',
tasks: 'uglify',
options: {
spawn: false
}
},
css: {
files: 'app/assets/sass/**/*.scss',
tasks: 'sass',
options: {
spawn: false
}
}
}
})
grunt.loadNpmTasks('grunt-contrib-uglify')
grunt.loadNpmTasks('grunt-contrib-sass')
grunt.loadNpmTasks('grunt-contrib-watch')
}