Skip to content

Commit 4fe83f2

Browse files
committed
Tweaked gulp to remove clutter from the build/ folder.
1 parent 2bed16b commit 4fe83f2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

gulpfile.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ function compileJs(watch) {
4141
.pipe(gulp.dest('./build/js'));
4242
}
4343

44+
4445
if (watch) {
4546
bundler.on('update', function () {
4647
rebundle();
@@ -90,7 +91,7 @@ gulp.task('watch-sass', function () {
9091
});
9192

9293
gulp.task('copy-assets', function () {
93-
return gulp.src(staticAssets, {base: './'})
94+
return gulp.src(staticAssets, {base: './', dot: true})
9495
.pipe(gulp.dest('build/'));
9596
});
9697

@@ -143,7 +144,8 @@ gulp.task('clean-post-build', function () {
143144
'./build/js/index.template.js',
144145
'./build/js/scripts.min.js.map',
145146
'./build/js/checkSupport.template.js',
146-
'./build/js/analytics.template.js'
147+
'./build/js/analytics.template.js',
148+
'./build/assets/spinner*.gif'
147149
], {read: false})
148150
.pipe(rimraf());
149151
});

0 commit comments

Comments
 (0)