Open unsalkorkmaz opened 1 year ago
@unsalkorkmaz Thanks for your reporting.
My understanding is that the node_modules directory is explicitly excluded and I could not reproduce this in my environment.
We would be happy to receive more information on WordPress version, Gutenberg plugin version, OS, etc.
My node_modules is in directory.
wp-content/themes/theme_name/headless/node_modules
I will post a video today
Here is the video: https://www.youtube.com/watch?v=9F1LtmMrjsY (new uploaded, proccessing atm)
You can see CPU spike in right macos m1 menu..
And lets say I want to give demo for my premium theme.. Why the hell would I want a download button?
@unsalkorkmaz
Thank you for the detailed explanation.
Indeed, it seems that the node_modules
directory in the sub directory will be included.
I was also able to reproduce the following commands:
cd ../path/to/wp-content/themes/twentytwentythree/assets
npm install some-package
The increase in CPU load and the time it takes to run Export is probably due to the large number of files being scanned.
I think it might be a good idea to submit a core ticket since the theme export feature is already in the WordPress core and I believe it is a PHP side issue.
Ok. I opened a ticket; https://core.trac.wordpress.org/ticket/57379#ticket
What problem does this address?
This button tries to zip my whole theme which as node_modules with 500MB content:
What is your proposed solution?
I need a way to disable this.