Skip to content

Commit 4086c98

Browse files
committed
Remove assets directory to simplify file structure
1 parent 6f64a2a commit 4086c98

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

assets/CNAME CNAME

File renamed without changes.

assets/favicon.ico favicon.ico

File renamed without changes.

gulpfile.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ var config = {
2525
indexPath: './index.html',
2626
jsPath: './js',
2727
sassPath: './stylesheets/scss',
28+
29+
// Files in the root that need to be copied over to the root of the build directory
30+
// This excludes index.html which is handled separately due to its templating
31+
assets: [ './CNAME', './favicon.ico' ]
2832
};
2933

3034
var jsExtension = gutil.env.production ? 'min.js' : 'js',
@@ -98,7 +102,7 @@ gulp.task( 'css', function () {
98102

99103
// Copy assets from /assets into the root of the build directory
100104
gulp.task( 'assets', function() {
101-
return gulp.src( './assets/*' ).
105+
return gulp.src( config.assets ).
102106
pipe( gulp.dest( config.buildPath ) );
103107
} );
104108

0 commit comments

Comments
 (0)