Update gulpfile.js
Only fullpaths when developing, not when deploying
This commit is contained in:
@@ -30,7 +30,7 @@ var browserifyTask = function (options) {
|
|||||||
entries: [options.src], // Only need initial file, browserify finds the rest
|
entries: [options.src], // Only need initial file, browserify finds the rest
|
||||||
transform: [reactify], // We want to convert JSX to normal javascript
|
transform: [reactify], // We want to convert JSX to normal javascript
|
||||||
debug: options.development, // Gives us sourcemapping
|
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
|
// We set our dependencies as externals on our app bundler when developing
|
||||||
@@ -181,4 +181,4 @@ gulp.task('deploy', function () {
|
|||||||
|
|
||||||
gulp.task('test', function () {
|
gulp.task('test', function () {
|
||||||
return gulp.src('./build/testrunner-phantomjs.html').pipe(jasminePhantomJs());
|
return gulp.src('./build/testrunner-phantomjs.html').pipe(jasminePhantomJs());
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user