0

I have a build and a src dir. And in my src dir with my public folder where all my css's, assets and html's and the server folder with all server files. And now for an example in my server.ts I use a view in public/html. And if I transpiling my code in the build folder only the .ts files are and then the server.js tries to find the view in cmpl/public/html...

What is now a good way to transpiling the full src folder to build? Can Gulp this? Or TSC directly?

Greetz

1 Answer 1

1

You can just copy your html files to cmpl directory:

gulp.task('copyHtml', function () {
  return gulp
    .src('public/html/**/*.html')
    .pipe(gulp.dest('cmpl'));
});
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.