Update gulpfile.js

Only fullpaths when developing, not when deploying
This commit is contained in:
Christian Alfoni
2014-12-01 13:10:09 +01:00
parent e160286d01
commit ee6f607f93

View File

@@ -30,7 +30,7 @@ var browserifyTask = function (options) {
entries: [options.src], // Only need initial file, browserify finds the rest
transform: [reactify], // We want to convert JSX to normal javascript
debug: options.development, // Gives us sourcemapping
cache: {}, packageCache: {}, fullPaths: true // Requirement of watchify
cache: {}, packageCache: {}, fullPaths: options.development // Requirement of watchify
});
// We set our dependencies as externals on our app bundler when developing
@@ -181,4 +181,4 @@ gulp.task('deploy', function () {
gulp.task('test', function () {
return gulp.src('./build/testrunner-phantomjs.html').pipe(jasminePhantomJs());
});
});