I have the 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 I go to the build folder and see the built file. It contains full paths of some js files. How do prevent that?