When running npm run build in a project with razzle-plugin-scss, the build fails with the following error:
./src/App.scss
ValidationError: Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
- options has an unknown property 'minimize'. These properties are valid:
object { url?, import?, modules?, sourceMap?, importLoaders?, localsConvention?, onlyLocals?, esModule? }
App should build without errors.
Tested with examples/with-scss
Removing minimize: true from razzle-plugin-scss/index.js fixes the error.
yeap, I will push the fix later tonight
Fixed in next branch, new release soon. Closing
Most helpful comment
yeap, I will push the fix later tonight