Razzle: Unable to build application because `minimize` option is deprecated

Created on 26 Apr 2020  路  2Comments  路  Source: jaredpalmer/razzle

馃悰 Bug report

Current Behavior

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? }

Expected behavior

App should build without errors.

Reproducible example

Tested with examples/with-scss

Suggested solution(s)

Removing minimize: true from razzle-plugin-scss/index.js fixes the error.

Most helpful comment

yeap, I will push the fix later tonight

All 2 comments

yeap, I will push the fix later tonight

Fixed in next branch, new release soon. Closing

Was this page helpful?
0 / 5 - 0 ratings

Related issues

krazyjakee picture krazyjakee  路  3Comments

kkarkos picture kkarkos  路  3Comments

corydeppen picture corydeppen  路  3Comments

ewolfe picture ewolfe  路  4Comments

gabimor picture gabimor  路  3Comments