javascript - Browswerify compiling to full paths even when fullPaths is set to false -
i have following gulp task:
var source = require('vinyl-source-stream'), gulp = require('gulp'), browserify = require('browserify'), reactify = require('reactify'), notify = require('gulp-notify'); var sourcesdir = './react', appentrypoint = "req.jsx", targetdir = './build'; gulp.task('default', function() { return browserify({entries: [sourcesdir + '/' + appentrypoint], fullpaths:false, debug: true}) .transform(reactify) .bundle() .pipe(source(appentrypoint)) .pipe(gulp.dest(targetdir)) .pipe(notify("bundling done.")); }); gulp.task('watch', function() { gulp.watch(sourcesdir + '/' + "*.jsx", ['default']); }); when go build folder , see built file. contains full paths of js files. how prevent that?
Comments
Post a Comment