How do I reference the scss file of a variable?

different css files need to be referenced dynamically according to the data returned in the background. Considering that import cannot use variables, it is effective to use require,
, but it is not very good
clipboard.png

,
clipboard.png

.

how should I write it?

Nov.17,2021

can be written as follows:

import('../index.css').then(() => {})
Menu