Static WordPress Community

Js and css are not crawled

Hi,I am using transfer to S3.

The js and css under the wp-includes directory and wp-content directory are not generated as files.
For example, “/wp-includes/css/dist/block-library/style.min.css” and “/wp-content/themes/twentytwenty/style.css”.

Is there a way to properly place these on S3?
I would like to know if possible with the setting of WP2Static.


I wrote “/wp-content/themes/twentytwenty/style.css” in “WP2 Static Setting >Crawling >Include additional URLs”, but it didn’t work well.

Hi @hiro_tk, thanks for reporting.

There is a big change underway to detection/discovery of URLs for the next version coming up in along with other recent detecting improvements that should solve such issues.

For the meantime, you may have luck to use the Autoptimize plugin, which can consolidate your CSS/JS and tends to help overcome this issue by making them more easily includable.

I’m really thankful to you.
In my case, it’s resolved.

1 Like

w00t! Glad it helped, @hiro_tk!

Next version 6.x.x release should negate the need for the workaround