返信: 3
wp-envを使用して
npm run wp-env start
をした際にDockerのthemes/
ディレクトリにインストールされるテーマを減らせますか?
.wp-env.json
はこのようになってます。
{
"core": null,
"phpVersion": null,
"plugins": [],
"themes": [],
"port": 12345,
"env": {
"tests": {
"port": 12346
}
},
"config": {
"WP_DEBUG": true
},
"mappings": {
"wp-content/themes/wp-theme-name/": "./dist/wp-theme-name/",
"sql": "./sql"
}
}
"themes" : []
の部分を消してもDockerにインストールされるのは、古くからのテーマ全てなので不要です。
最新の1つだけでいいのですが可能でしょうか?
https://ja.wordpress.org/team/handbook/block-editor/reference-guides/packages/packages-env/
公式ドキュメントを見ても知見は得られませんでした…