Skip to content

Commit

Permalink
gulpfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mcguffin committed Nov 20, 2017
1 parent 6a3fbc0 commit e2ab7c0
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ var sass = require('gulp-sass');
var sourcemaps = require('gulp-sourcemaps');
var rename = require('gulp-rename');

try {
pro = require('./pro/gulpfile.js');
} catch(err){
pro = false;
}


function do_scss( src ) {
Expand Down Expand Up @@ -77,11 +72,12 @@ gulp.task( 'js', function(){
} );



if ( ! pro ) {
gulp.task('build', ['scss','js'] );
} else {
try {
pro = require('./pro/gulpfile.js');
gulp.task('build', ['scss','js', 'pro' ] );
} catch(err){
pro = false;
gulp.task('build', ['scss','js'] );
}


Expand Down

0 comments on commit e2ab7c0

Please sign in to comment.