A
A
ar52018-09-11 10:51:14
css
ar5, 2018-09-11 10:51:14

Is it possible to traspil CSS modules?

Hello, there is a React project where CSS modules are used to work with styles, so everything is assembled using webpack into a single bundle. To work with styles, it is used css-loader, but there is a need to use the components of this project in another place, I traspiled the components themselves using babel, but the problem with css modules remains.
Is there any way to process also the css to work with it, outside of the webpack build?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
ar5, 2018-10-01
@ar5

In fact, I decided the question, you can collect modules and webpackohm, just specify libraryTarget: 'umd'. Then you can organize the module with your files and connect it as a package

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question