react-app-rewire-contrib icon indicating copy to clipboard operation
react-app-rewire-contrib copied to clipboard

Update config-override.js example in react-app-rewire-contrib/packages/react-app-rewire-emotion/README.md

Open unyo opened this issue 6 years ago • 0 comments

inline: true no longer exists, autoLabel: true might be the new thing to auto-generate the labels that make sense. This stopped working suddenly over this weekend iirc, so I'm guessing maybe babel-plugin-emotion might have changed it's options.

const { rewireEmotion } = require('react-app-rewire-emotion');

/* config-overrides.js */
module.exports = function override(config, env) {
  return rewireEmotion(config, env, { autoLabel: true });
}

unyo avatar Nov 11 '18 21:11 unyo