Skip to content
This repository has been archived by the owner on May 10, 2022. It is now read-only.

Zipped plugin size is 5MB (inflated is 25 MB) because of the vendor/spatie/schema-org files #487

Open
contactashish13 opened this issue Jun 17, 2020 · 3 comments

Comments

@contactashish13
Copy link
Contributor

related to changes done in #482

@contactashish13
Copy link
Contributor Author

@selul is there any way we can restrict composer to download only the specific files we want to? Or can we use distignore for this?

@selul
Copy link
Contributor

selul commented Jun 17, 2020

Composer has a post-install script https://getcomposer.org/doc/articles/scripts.md#command-events which you can use to run rm -rf <location>.

Either this or using .distignore should be fine.

@contactashish13 contactashish13 changed the title Plugin size is 25 MB because of the vendor/spatie/schema-org files Zipped plugin size is 5MB (inflated is 25 MB) because of the vendor/spatie/schema-org files Jun 18, 2020
@contactashish13
Copy link
Contributor Author

contactashish13 commented Jun 22, 2020

.distignore does not seem to work with the same rules as .gitignore.

Something as simple as the following does not work correctly. It removes all files under src folder despite the negation.

vendor/spatie/schema-org/src/*.php
!vendor/spatie/schema-org/src/Schema.php

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants