miickel/gulp-angular-templatecache

Leading slash added to filenames under gulp 4

Open

#164 ouverte le 28 oct. 2018

Voir sur GitHub
 (18 commentaires) (5 réactions) (0 assignés)JavaScript (97 forks)batch import
help wanted

Métriques du dépôt

Stars
 (533 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

Calling this package with gulp 4 erroneously results in template filenames with leading separators.

This seems to be due to the breaking change in vinyl, where internal path records such as file.base are now normalized: https://github.com/gulpjs/vinyl/commit/9ae7cd10c5423cbad9d38fc6c99960c62ac2f429#diff-c49ce3c4dfcfa830e06789881dd4d5d4 That change breaks the following code: url = path.join(root, file.path.replace(base || file.base, ''));

It is the root cause of #153

I posted a workaround in the other issue, but I'll see if I can cook something up that's compatible with all vinyl versions instead

Guide contributeur