Cannot add less to react, solution using webpack

webpack4.x
less has been introduced and used in the H1 tag, but there is no style on the final page.

index.js
clipboard.png

index.less
clipboard.png

webpack.dev.js
clipboard.png

:

clipboard.png


this referencing method requires CSSModule to be opened.

Menu