-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed
Labels
Needs Technical FeedbackNeeds testing from a developer perspective.Needs testing from a developer perspective.[Feature] Block APIAPI that allows to express the block paradigm.API that allows to express the block paradigm.
Description
Hi,
I have this In block.json:
"editorStyle": "file:./index.css",
"style": [
"file:./style-index.css",
"file:./swiper-bundle.css"
],
The first style is injecting fine in front end but the second one "file:./swiper-bundle.css" is not inserting at all in front end.
In the editor they work both.
Can someone point me in the right direction please?
I am reading these docs:
In index.js I use these lines:
/**
* CSS
*/
import './editor.css';
import './style.css';
import './swiper-bundle.css';
Or should I use classic wp_enqueue_style instead for multiple files?
Kind regards
Metadata
Metadata
Assignees
Labels
Needs Technical FeedbackNeeds testing from a developer perspective.Needs testing from a developer perspective.[Feature] Block APIAPI that allows to express the block paradigm.API that allows to express the block paradigm.