-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathgulpfile.js
58 lines (57 loc) · 1.35 KB
/
gulpfile.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
const gulpStatic = require('gulp-static-gen');
gulpStatic({
css: {
input: './src/sass/main.sass',
output: './dist/assets/css',
watch: './src/sass/**/*',
},
hbs: {
multiple: [{
data: require('./src/data.json'),
input: './src/templates/index.hbs',
output: {
name: 'index.html',
dir: './dist',
}
}],
batch : ['./src/templates/partials'],
watch : './src/templates/**/*',
},
img: {
input: './src/img/**/*',
output: './dist/assets/img',
config: {
interlaced: true,
progressive: true,
optimizationLevel: 5,
svgoPlugins: [{removeViewBox: true}]
}
},
scripts: {
input: './src/js/index.js',
output: './dist/assets/js/',
watch: './src/js/**/*',
},
move: [{
input: './src/css/**/*',
output: './dist/assets/css'
},{
input: './src/fonts/**/*',
output: './dist/assets/fonts'
},{
input: './src/js/**/*',
output: './dist/assets/js'
},{
input: './src/CNAME',
output: './dist'
},{
input: './src/_github-challenge-opensanca.opensanca.com.br.txt',
output: './dist'
},{
input: './src/google311ad56e2894319a.html',
output: './dist'
}],
server: {
indexPath: '/index.html'
}
});