Advertisement
Guest User

Untitled

a guest
Jul 21st, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. webpack: (config) => {
  2. const configCopy = { ...config };
  3.  
  4. configCopy.module.rules.push(
  5. {
  6. test: /\.svg$/,
  7. use: [
  8. 'babel-loader',
  9. {
  10. loader: 'react-svg-loader',
  11. options: {
  12. svgo: {
  13. plugins: [
  14. { inlineStyles:
  15. {
  16. onlyMatchedOnce: false,
  17. },
  18. },
  19. ],
  20. },
  21. },
  22. },
  23. ],
  24. },
  25. );
  26.  
  27. return configCopy;
  28. },
  29. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement