Skip to content

Commit

Permalink
Use vinyl fs directly for symlink fix
Browse files Browse the repository at this point in the history
Fixes #1635
  • Loading branch information
samccone committed Jun 25, 2016
1 parent cb84407 commit ea1d21e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
9 changes: 6 additions & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ var del = require('del');
var runSequence = require('run-sequence');
var pagespeed = require('psi');
var app = require('./server');
var vinylfs = require('vinyl-fs');

var AUTOPREFIXER_BROWSERS = [
'ie >= 10',
Expand Down Expand Up @@ -40,7 +41,7 @@ gulp.task('images', function () {

// Copy All Files At The Root Level (app)
gulp.task('copy', function () {
return gulp.src([
return vinylfs.src([
'examples/**',
'bower_components/**',
'learn.json',
Expand All @@ -49,8 +50,10 @@ gulp.task('copy', function () {
'site-assets/favicon.ico'
], {
dot: true,
base: './'
}).pipe(gulp.dest('dist'))
base: './',
followSymlinks: false,
})
.pipe(vinylfs.dest('dist'))
.pipe($.size({title: 'copy'}));
});

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"jshint-stylish": "^1.0.0",
"psi": "^0.1.1",
"run-sequence": "^1.0.1",
"serve-favicon": "^2.3.0"
"serve-favicon": "^2.3.0",
"vinyl-fs": "^2.4.3"
}
}

0 comments on commit ea1d21e

Please sign in to comment.