Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/Rules
diff options
context:
space:
mode:
authorAchilleas Pipinellis <axil@gitlab.com>2019-05-08 05:34:03 +0300
committerAchilleas Pipinellis <axil@gitlab.com>2019-05-08 05:34:03 +0300
commit15b65b98598ebc9e105a10979affa4b25f4133ac (patch)
tree7d52fd0270d397b39ac7108ae31c07ce36735c84 /Rules
parent262dcb765f38852430805388c3dc4b20ba6d4cae (diff)
Do not compile minified assets
Everything ending in *.min.* will be ignored and be written as is.
Diffstat (limited to 'Rules')
-rw-r--r--Rules3
1 files changed, 3 insertions, 0 deletions
diff --git a/Rules b/Rules
index c0809d4d..ad20e44f 100644
--- a/Rules
+++ b/Rules
@@ -101,6 +101,9 @@ compile '/**/*.scss' do
write item.identifier.without_ext + '-v' + rep.item[:version].to_s + '.css'
end
+# Do not compile minified assets
+passthrough '/**/*.min.*'
+
compile '/**/*.js' do
filter :erb
write item.identifier.without_ext + '-v' + rep.item[:version].to_s + '.js'