Skip to content

Commit

Permalink
fixes #119
Browse files Browse the repository at this point in the history
  • Loading branch information
Cerem Cem ASLAN committed Aug 15, 2017
1 parent e8cb3f1 commit db1f2ed
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions gulpfile.ls
Original file line number Diff line number Diff line change
Expand Up @@ -260,10 +260,12 @@ gulp.task \vendor-css, ->
# Copy assets into the public directory as is
# search for a folder named "assets", copy and paste its contents into
# build folder.
sep = if /^win/.test process.platform => '\\' else '/'

gulp.task \assets, ->
gulp.src for-assets
.pipe rename (path) ->
path-parts = path.dirname.split('/')
path-parts = path.dirname.split sep
parts = []
found-assets = no
for i in path-parts
Expand All @@ -275,7 +277,7 @@ gulp.task \assets, ->
found-assets = yes
continue
parts.push i
_tmp = join '/', parts
_tmp = join sep, parts
path.dirname = _tmp if found-assets
.pipe gulp.dest paths.client-public

Expand Down

0 comments on commit db1f2ed

Please sign in to comment.