S
S
Shuboanator2022-03-25 00:42:37
Layout
Shuboanator, 2022-03-25 00:42:37

How to create an additional folder with html files so that it is included in the assembly?

I use the assembly
https://github.com/maxdenaro/gulp-maxgraph

How to create another folder for example (project) in which there will be files like (project1.html, project2.html)
So that this folder is also included in the site assembly ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
IIIu6ko, 2022-03-25
@Shuboanator

You need to edit the gulpfile, or rather add the path to the htmlInclude task

const htmlInclude = () => {
  return src([`${srcFolder}/*.html`, `${srcFolder}/project/*.html`])
    .pipe(fileInclude({
      prefix: '@',
      basepath: '@file'
    }))
    .pipe(typograf({
      locale: ['ru', 'en-US']
    }))
    .pipe(dest(buildFolder))
    .pipe(browserSync.stream());
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question