-
Notifications
You must be signed in to change notification settings - Fork 278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ignoring files unneeded for building slug #95
Comments
I wanted to get rid of WP default themes too! So, I updated # ...
# Remove files to slim down slug if we're on Heroku
if [ ! -e .sluglocal ]
then
rm -rf vendor/WordPress
rm -rf public.built/wp-content/themes/twenty* # <- added this
rm -rf public
fi
# ... Also, regarding your huge theme folder, you can ignore files/folders added to the slug by adding them in
Hope this helps! |
Thanks @Tailzip I totally forgot to look at the if block below! Seems like the most logical way to do it. I was under the impression that the Not sure what is going on under the hood for this sync function. |
Yeah right now the rebuild script is pretty hacky, it should probably actually read |
I've noticed the the slug can sometimes take a huge time to compile if the theme is using NPM modules. I'm personally using FoundationPress on my site and the NPM modules folder (including dev dependencies) is over 200MB.
I also don't want all of the wordpress themes included in the composer install (back to twentyeleven!)
Therefore in
support/app_slug_compile.sh
I have changed:to
Haven't noted any bugs here, and not sure if the
rsync
can be optimised. However just leaving this as an enhancement for peoples to try out.Thanks for this awesome repo @xyu
The text was updated successfully, but these errors were encountered: