hparra / gulp-rename

Rename files easily
MIT License
692 stars 73 forks source link

The prefix deleted several characters #91

Closed barisdemirhan closed 4 years ago

barisdemirhan commented 4 years ago

The first character I entered for the prefix value is being deleted.

Code:

.src([
    "node_modules/owl.carousel2/dist/assets/owl.carousel.min.css",
    "node_modules/fancybox/dist/css/jquery.fancybox.css"
])
.pipe(
    rename({
        prefix: "assets_",
    })
)
.pipe(gulp.dest(baseDirs.dev + "assets/css"))

Output: ssets_wl.carousel.min.css ssets_query.fancybox.css

barisdemirhan commented 4 years ago

I found the source of the problem. It seems to be due to project paths that contain special characters. I would appreciate it if you provide the necessary update.

yocontra commented 4 years ago

Can you give a few examples of paths that are not working + what they are being changed to?