diff --git a/frontend_build/baseWebpackConfig.js b/frontend_build/baseWebpackConfig.js index ecde6cdd038..9b4f33f03b0 100644 --- a/frontend_build/baseWebpackConfig.js +++ b/frontend_build/baseWebpackConfig.js @@ -161,7 +161,11 @@ module.exports = { new webpack.IgnorePlugin(/(CHANGELOG|LICENSE|README)$/), new webpack.IgnorePlugin(/package.json/), new WebpackOnBuildPlugin(function(stats){ - child_process.spawn("gulp", ["rev"]); + if(process.env.SKIP_JS_REV){ + console.log("skipping rev..."); + }else{ + child_process.spawn("gulp", ["rev"]); + } }), new webpack.PrefetchPlugin("./app/coffeescripts/calendar/ContextSelector.coffee"), new webpack.PrefetchPlugin("./app/coffeescripts/calendar/TimeBlockRow.coffee"), diff --git a/gulpfile.babel.js b/gulpfile.babel.js index c018462231c..05ce7950016 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js @@ -2,6 +2,7 @@ const gulp = require('gulp') const gulpPlugins = require('gulp-load-plugins')() const DIST = 'public/dist' + const STUFF_TO_REV = [ 'public/fonts/**/*', 'public/images/**/*', @@ -38,7 +39,12 @@ const STUFF_TO_REV = [ gulp.task('rev', () => { - gulp.src(STUFF_TO_REV, { + var stuffToRev = STUFF_TO_REV; + if(process.env.SKIP_JS_REV){ + // just get fonts and images + stuffToRev = STUFF_TO_REV.slice(0,2) + } + gulp.src(stuffToRev, { base: 'public', // tell it to use the 'public' folder as the base of all paths follow: true // follow symlinks, so it picks up on images inside plugins and stuff })