Skip to content
Snippets Groups Projects
Verified Commit 80dfd763 authored by DJ Mountney's avatar DJ Mountney
Browse files

Drop non gzipped sourcemap files

This saves us about 17MB in packagesize. If we had dropped all
non-gzipped JS we would have gained an additional 6MB in savings, but we
currently allow admins to turn off gzip in nginx, and making the
decision whether its safe to change the other gzip files is harder.
parent a38fc550
No related branches found
No related tags found
No related merge requests found
---
title: Removed non-gzipped files for sourcemaps to save on package size
merge_request: 3592
author:
type: changed
Loading
Loading
@@ -171,6 +171,9 @@ build do
delete 'tmp'
delete 'public/uploads'
 
# Drop uncompressed sourcemap files. We will keep the gziped versions.
command "find public/assets/webpack -name '*.map' -type f -print -delete"
# Cleanup after bundle
# Delete all .gem archives
command "find #{install_dir} -name '*.gem' -type f -print -delete"
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment