DocSpring / craco-less

A Less plugin for craco / react-scripts / create-react-app
MIT License
123 stars 48 forks source link

Omit error option #81

Closed lywTYH closed 3 years ago

lywTYH commented 3 years ago
  let lessRule = createLessRule({
    baseRule: sassRule,
    overrideRule: {
      test: lessRegex,
      exclude: lessModuleRegex,
    },
  });

Sass options cannot be used by less (E.g prependData). Please omit it.

fanck0605 commented 3 years ago

For the current version(4.0.3) of create-react-app, these sass specific options are not included.

https://github.com/facebook/create-react-app/blob/v4.0.3/packages/react-scripts/config/webpack.config.js#L162