H
H
holfizz2021-12-24 13:45:52
gulp.js
holfizz, 2021-12-24 13:45:52

What is the right way to make gulp-file-include work?

In general, I have a problem with the gulp-file-include plugin. I downloaded the npm i -D gulp-file-includ e plugin, then I don't know exactly, like I tied it via .pipe, but when I run it, it gives the error below.

[19:33:12] Using gulpfile ~\OneDrive\Рабочий стол\gulp\gulpfile.js
[19:33:12] Starting 'default'...
[19:33:12] Starting 'reset'...
[19:33:12] Finished 'reset' after 24 ms
[19:33:12] Starting 'copy'...
[19:33:12] Starting 'html'...
[19:33:13] Finished 'copy' after 75 ms
[19:33:13] 'html' errored after 105 ms
[19:33:13] Error in plugin "gulp-file-include"
Message:
    ENOENT: no such file or directory, open 'C:\Users\gorla\OneDrive\Рабочий стол\gulp\src\,{
        '
Details:
    domainEmitter: [object Object]
    domainThrown: false

[19:33:13] 'default' errored after 168 ms

import fileinclude from 'gulp-file-include';

export const  html =  () => {
    return app.gulp.src(app.path.src.html)
    .pipe(fileinclude())
    .pipe(app.gulp.dest(app.path.build.html))
}


URGENT PLEASE HELP

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question