Skip to content

Commit 6bf6805

Browse files
committed
feat: remove html, css and svg files from package
1 parent 456ac4d commit 6bf6805

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tasks/package.rake

+5
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,11 @@ def remove_unnecessary_files package_dir
169169
# Ruby Docs
170170
sh "rm -rf #{package_dir}/lib/ruby/lib/ruby/*/rdoc*"
171171

172+
# Website files
173+
sh "find #{package_dir}/lib/vendor/ruby -name '*.html' | xargs rm -f"
174+
sh "find #{package_dir}/lib/vendor/ruby -name '*.css' | xargs rm -f"
175+
sh "find #{package_dir}/lib/vendor/ruby -name '*.svg' | xargs rm -f"
176+
172177
# Uncommonly used encodings
173178
sh "rm -f #{package_dir}/lib/ruby/lib/ruby/*/*/enc/cp949*"
174179
sh "rm -f #{package_dir}/lib/ruby/lib/ruby/*/*/enc/euc_*"

0 commit comments

Comments
 (0)