Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const { injectBabelPlugin } = require('react-app-rewired');
- module.exports = function override(config, env) {
- // do stuff with the webpack config...
- config = injectBabelPlugin(
- ['import', {libraryName: 'antd', libraryDirectory: 'es', style: 'css'}],
- config
- );
- return config;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement