gulp-parcel icon indicating copy to clipboard operation
gulp-parcel copied to clipboard

CSS and JS will point to temporary files when production of html

Open zacky1972 opened this issue 6 years ago • 2 comments

The following gulpfile.coffee with gulp parcel makes html files point to temporary files as links to CSS and JS.

gulp.task 'parcel', () ->
  gulp.src 'build/**/*.html', {read:false}
    .pipe parcel()
    .pipe gulp.dest('build/')

I think it will be solved by setting the working directory of parcel to ./build in this case.

zacky1972 avatar Dec 26 '17 01:12 zacky1972

Shawn suggest:

To set working directory, run as follows: cd build; yarn run gulp parcel

I'll try it.

zacky1972 avatar Jan 06 '18 11:01 zacky1972

@issuehuntfest has funded $25.00 to this issue. See it on IssueHunt

IssueHuntBot avatar Dec 05 '18 06:12 IssueHuntBot