SHARE
TWEET

Untitled

a guest May 27th, 2019 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const { injectBabelPlugin  } = require('react-app-rewired');
  2.  
  3. module.exports = function override(config, env) {
  4.     // do stuff with the webpack config...
  5.     config = injectBabelPlugin(
  6.         ['import', {libraryName: 'antd', libraryDirectory: 'es', style: 'css'}],
  7.         config
  8.     );
  9.     return config;
  10. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top