Comments (4)
@peterwilsoncc any recommended resolution here?
from safe-svg.
It looks like the following needs to be added to the composer config. The catch is that it isn't possible to included the vendor directory as we have a mix of dev and production dependencies. If the archive function is run while the dev dependencies are installed, the file will still be quite large.
"archive": {
"exclude": [
"/.distignore",
"/.github",
"/.gitignore",
"/.wordpress-org",
"/.wp-env.json",
"/.wp-env.override.json",
"/CHANGELOG.md",
"/CODE_OF_CONDUCT.md",
"/composer.json",
"/composer.lock",
"/CONTRIBUTING.md",
"/CREDITS.md",
"/package-lock.json",
"/package.json",
"/phpcs.xml",
"/phpunit.xml.dist",
"/README.md",
"/webpack.config.js",
"/node_modules",
"/tests"
]
from safe-svg.
The same error if installed as a Composer package (GitHub ZIP contains development files).
We should use gitattributes/export-ignore as composer archive
respects that.
from safe-svg.
We should use gitattributes/export-ignore
Oh no! This solves only the git index part of the problem.
composer archive
works on the filesystem and adds everything to the zip file.
from safe-svg.
Related Issues (20)
- When svg optimization is turned on, a javascript error can occur that breaks saving content HOT 1
- Clean up NPM dependencies and update node to v20
- The plugin hasn't been tested with an upcoming version of WordPress
- SVGs have a 10mb size Limit
- Release version 2.2.3
- Uncaught TypeError: Cannot read properties of undefined (reading 'isSavingPost') HOT 6
- Fatal Error in Version 2.2.3, Calling member function attributes() on a Bool HOT 4
- Release version 2.2.4
- Block Inline CSS gets always loaded HOT 5
- Allow the `current_user_can_upload_svg` method to be filtered HOT 3
- PHP 8.3 Compatibility HOT 4
- SafeSVG fatal error
- Fatal error in safe-svg/includes/blocks.php:51 when accessing the Wordpress Customizer HOT 2
- Incompability with e-payeye-payments
- SVG dimensions broken after 2.2.3 HOT 2
- The plugin hasn't been tested with an upcoming version of WordPress HOT 1
- Release version 2.2.5
- PHP 8.3 compatibility HOT 3
- No RDF metadata HOT 3
- Cypress dependency in runtime dependencies
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from safe-svg.