T
T
Test2017-07-04 12:56:29
gulp.js
Test, 2017-07-04 12:56:29

How to manipulate path in gulp?

I have the following project structure

dist
   css
   js
source
   css
   js
   html

The html folder contains jade sources, which must not only be compiled and put into the dist folder, but also saved the path. That is, it is source/html/index.jaderecompiled to dist/index.html, and source/html/login/index.jadein dist/login/index.html
gulp.watch it returns an object with an absolute path (that is, indicating the disk, the path to the project)
I can rename the file, but I need to remove everything from this path up to source (including it). So, with the help of which module can you carry out such manipulations with paths?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alvvi, 2017-07-04
@alvvi

gulp-rename should help.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question