Create-react-app scaffolding how to set less? without eject webpack configuration

how to set less? without eject webpack configuration for create-react-app scaffolding
here is an article that uses the method of exposing webpack configuration: https://juejin.im/post/5c14d2.

Feb.16,2022

< H1 > how the config-overrider configuration takes effect < / H1 >
  • npm I react-app-rewired customize-cra-- save-dev
  • modify the configuration in package.json


{
  ...
  "include": [
    "src"
  ],
  "extends": "./paths.json"

Menu