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
Allow build process to split css files for front end and backend.
Related to #963.
This PR splits up some of our CSS build process to have seperate files
generated for blocks and editor specific styles of blocks. Block
specific styles are now loaded both on the front-end and back end.
Styles that should appear on both are currently in a block.scss file.
Styles added:
wp-edit-blocks: blocks/build/edit-block.css
wp-blocks: blocks/build/style.css
Caveats:
It was suggested that the reverse be done, by using an edit.scss to hold
editor specific styles. This seemed pretty daunting a task to me and I
did not fully grasp what benefit that would bring over this approach
either.
** Testing Instructions **
build the files via `npm run build` or `npm run dev`
Verify that the gallery columns work both on the front end as well as
back end.
Verify that the drop cap style still works on the back end.
0 commit comments