Mercurial > wikked
diff gulpfile.js @ 466:8ee6e7649aba
web: Update to Font Awesome 5.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sat, 06 Oct 2018 19:51:12 -0700 |
parents | 2f68a463cb06 |
children |
line wrap: on
line diff
--- a/gulpfile.js Sat Oct 06 19:47:35 2018 -0700 +++ b/gulpfile.js Sat Oct 06 19:51:12 2018 -0700 @@ -5,7 +5,7 @@ var less = require('gulp-less'); var sourcemaps = require('gulp-sourcemaps'); -let cleanCSS = require('gulp-clean-css'); +var cleanCSS = require('gulp-clean-css'); var imagemin = require('gulp-imagemin'); @@ -23,7 +23,7 @@ // Keep gulp from hanging on this task if (typeof this.emit === 'function') this.emit('end'); -} +}; gulp.task('css', function() { @@ -33,18 +33,18 @@ .on('error', handleErrors) .pipe(gulpif(argv.production, cleanCSS({compatibility: 'ie8'}))) .pipe(gulpif(!argv.production, sourcemaps.write())) - .pipe(gulp.dest('wikked/static/css')) + .pipe(gulp.dest('wikked/static/css')); }); gulp.task('fonts', function() { - return gulp.src('wikked/assets/font-awesome/fonts/*') - .pipe(gulp.dest('wikked/static/fonts')) + return gulp.src('node_modules/@fortawesome/fontawesome-free/webfonts/*') + .pipe(gulp.dest('wikked/static/webfonts')); }); gulp.task('images', function() { return gulp.src('wikked/assets/img/*') .pipe(gulpif(argv.production, imagemin())) - .pipe(gulp.dest('wikked/static/img')) + .pipe(gulp.dest('wikked/static/img')); }); gulp.task('js', function() {