-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
49 lines (45 loc) · 1.1 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
//Gruntfile.js
module.exports = function (grunt) {
grunt.initConfig({
// Watch task config con Sass
watch: {
sass: {
files: "sass/*.sass",
tasks: ['sass']
}
},
// Sass task config
sass: {
dev: {
files: {
// fichero destino // fichero .scss
"css/inicio.css" : "sass/inicio.sass",
"css/registro.css" : "sass/registro.sass",
"css/explorar.css" : "sass/explorar.sass",
"css/generales.css" : "sass/generales.sass"
}
}
},
// BrowserSync task config
browserSync: {
default_options: {
bsFiles: {
src: [
"css/*.css",
"js/*.js",
"*.html"
]
},
options: {
watchTask: true,
proxy: "http://gento/"
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-browser-sync');
//Tarea por defecto
grunt.registerTask('default', ['browserSync', 'watch']);
};