You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In #61540, wp-scripts supported CSS for RTL languages. Also, with RTLCSS, you can add some processing via the Control Directives.
However, this Control Directives does not seem to work with the build command.
I thought that #68201 might be affecting this, but it seems that's not the case. I don't know if the control directives were not working from the beginning.
t-hamano
changed the title
Scripts: Contril Directives for RTLCSS don't work in build command
Scripts: Control Directives for RTLCSS don't work in build command
Dec 28, 2024
Description
In #61540, wp-scripts supported CSS for RTL languages. Also, with RTLCSS, you can add some processing via the Control Directives.
However, this Control Directives does not seem to work with the
build
command.I thought that #68201 might be affecting this, but it seems that's not the case. I don't know if the control directives were not working from the beginning.
cc @gziolo @ryelle
Step-by-step reproduction instructions
Use the following command to create a block without wp-script:
Update the
my-block/src/editor.scss
file as follows:✅ Run
../node_modules/.bin/wp-scripts start
and check the build file. Confirm that the controls directive is working.index.css
:index-rtl.css
:❌ Run
../node_modules/.bin/wp-scripts build
and check the build file. Confirm that the controls directive is NOT working.index.css
:index-rtl.css
:Screenshots, screen recording, code snippet
b57b77409fdef37f9e0aea1bd2260107.mp4
Environment info
OS: WSL2 (Ubuntu 22.04.4 LTS)
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.
The text was updated successfully, but these errors were encountered: