DC
Условно говоря есть:
index.ts
render(<App1 />, root1)
render(<App2 />, root2)
app1.ts
import style from ‘./index.css’
const App1 = () => {
return <SomeComponent /> // у него свои стили
}
нужно чтобы были бандлы app1.css и app2.css
можно ли так?
Size: a a a
DC
DC
optimization: {
splitChunks: {
cacheGroups: {
style: {
name: 'switcher',
test: /Toggler\/index\.scss$/,
chunks: 'all',
enforce: true
},
}
}
},
R
A
R
R
R
RU
RU
СА
MK
RU
A
A
R
RU
SK
A