38 create a block specific build pattern so scss and css can be local to the block folder #44
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes
#38
#WDSUS-37
What type of PR is this? (put an x to all applicable)
Link to test
Description
This PR adds to the block created with the
WP-CLI
commandwp wds create_portable_block
starter styles and changes how styles are built, so single style files are created per each block.Example:
Run the following to create the block
myblock
(double-check you don't have a folder namedmyblock
underblocks
):add markup and style code to your block, such as:
and run
npm run buld
ornpm run start
. This should result, after adding the custom block to a post or page, in the following:on the Frontend
Editor page
Related Tickets & Documents
Mobile & Desktop Screenshots/Recordings
Added tests?
Added to documentation?
Others
[optional] Are there any post-deployment tasks we need to perform?