Answer the question
In order to leave comments, you need to log in
How to split css into bundles in webpack?
The case is not standard. This is a React app with css-modules (scss). My app has multiple React apps.
const togglerRoot = root.querySelector(`#${TOGGLER_PSELECTOR}`)
const pagerRoot = root.querySelector(`#${PAGER_PSELECTOR}`)
render(<ChatCornerTogglerApplication />, togglerRoot)
render(<ChatCornerPagerApplication />, pagerRoot)
const ChatCornerTogglerApplication: React.FC = () => {
// ...
return (
<VendorFrame name="toggler" scrolling="no" style={style}>
<Toggler shape={shape} text={text} style={{ backgroundColor: mainColor }} onClick={toggleCornerMode} />
</VendorFrame>
)
}
Toggler
. chat-corner-toggler-app.css
2. chat-corner-pager-app.css
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question