prevent building dev assets when production isn’t uglified

Change-Id: I7505edced788b306d9bb43997762564813be11c8
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/248846
Reviewed-by: Andrea Cirulli <andrea.cirulli@instructure.com>
Reviewed-by: James Butters <jbutters@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Aaron Ogata <aogata@instructure.com>
Product-Review: Aaron Ogata <aogata@instructure.com>
This commit is contained in:
Aaron Ogata 2020-09-29 09:45:57 -07:00
parent 025556caf3
commit eed894608d
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ namespace :canvas do
# build dev bundles even in prod mode so you can debug with ?optimized_js=0
# query string (except for on jenkins where we set JS_BUILD_NO_UGLIFY anyway
# so there's no need for an unminified fallback)
build_dev_js = !build_prod_js || ENV['JS_BUILD_NO_UGLIFY'] == "1"
build_dev_js = !build_prod_js || ENV['JS_BUILD_NO_UGLIFY'] != "1"
batches = Rake::TaskGraph.draw do
task 'css:compile' => [ 'gulp:rev' ] if build_css