-
Notifications
You must be signed in to change notification settings - Fork 271
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
How to add preset for custom bundle of wp.data
#520
Comments
A workaround: I named my custom bundle |
That's weird! I don't have any idea off the top of my head. I'll try this when I have a moment. |
Oh, no, I know what this is – only the imported files are copied: wordpress-playground/packages/playground/remote/src/lib/get-wordpress-module.ts Lines 8 to 24 in 3046803
|
I added the new preset in that file too, as a dynamic import. A clue might be that the |
Playground now uses .zip files instead of .data files for loading WordPress and those zips may be provided in the Blueprint's |
That's wonderful! I hadn't noticed that change. Using the zip format will make creating custom bundles much easier. |
I'd like to add a new preset that creates a custom bundle with a set of plugins and content loaded.
Following #501 about adding a
beta
preset, I added my own6.2-custom
preset in those places, particularly:And a conditional clause in
compile-wordpress/Dockerfile
to handle this preset, installing plugins, importing content from WXR file.I'm able to build the preset with the following command:
Everything builds, except for the hashed
wp-6.2-custom-*.data
indist/packages/playground/remote/assets
.packages/playground/remote/public
, there's a newly created folderwp-6.2-custom
.packages/playground/remote/src/wordpress
, there arewp-6.2-custom.data
andwp-6.2-custom.js
.Somehow this
.data
file is not getting copied to a hashed file name indist
.EDIT: Weirdly, the built files in
public
andsrc/wordpress
are owned byroot
user. That might be related to why the.data
file isn't being copied to its destination indist
.The text was updated successfully, but these errors were encountered: