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

Provision to support parcel options serve, port & sourceMaps

Open ashokjayaprakash opened this issue 5 years ago • 0 comments

Fix for the issue, How to specify port

Enhanced the library to support parcel options serve, port & sourceMaps

Code Snippet

const gulp = require("gulp");
const parcel = require('gulp-parcel');

gulp.task('parcel-bundler', function() {
    gulp
      .src('./src/*.js', { read: false })
      .pipe(parcel({outDir: "dist", port: 8000, sourceMaps: true }))
      .pipe(gulp.dest('dist'))
})

Executed output screenshot for reference, image

ashokjayaprakash avatar Dec 05 '18 20:12 ashokjayaprakash