mirror of
https://github.com/google/material-design-lite.git
synced 2024-09-11 12:25:38 +03:00
Fixes #264 - copy fonts to dist
This commit is contained in:
parent
b91ba280f0
commit
8f5c506bad
14
gulpfile.js
14
gulpfile.js
@ -61,12 +61,20 @@ gulp.task('images', function () {
|
||||
});
|
||||
|
||||
// Copy All Files At The Root Level (app)
|
||||
gulp.task('copy', function() {
|
||||
return gulp.src(['app/*', '!app/*.html'])
|
||||
gulp.task('copy', function () {
|
||||
return gulp.src(['app/*','!app/*.html'])
|
||||
.pipe(gulp.dest('dist'))
|
||||
.pipe($.size({title: 'copy'}));
|
||||
});
|
||||
|
||||
// Copy Web Fonts To Dist
|
||||
gulp.task('fonts', function () {
|
||||
return gulp.src(['app/fonts/**'])
|
||||
.pipe(gulp.dest('dist/fonts'))
|
||||
.pipe($.size({title: 'fonts'}));
|
||||
});
|
||||
|
||||
|
||||
// Automatically Prefix CSS
|
||||
gulp.task('styles:css', function () {
|
||||
return gulp.src('app/styles/**/*.css')
|
||||
@ -171,7 +179,7 @@ gulp.task('serve:dist', ['default'], function () {
|
||||
|
||||
// Build Production Files, the Default Task
|
||||
gulp.task('default', ['clean'], function (cb) {
|
||||
runSequence('styles', ['jshint', 'html', 'images', 'copy'], cb);
|
||||
runSequence('styles', ['jshint', 'html', 'images', 'fonts', 'copy'], cb);
|
||||
});
|
||||
|
||||
// Run PageSpeed Insights
|
||||
|
Loading…
Reference in New Issue
Block a user