Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- webpack: (config) => {
- const configCopy = { ...config };
- configCopy.module.rules.push(
- {
- test: /\.svg$/,
- use: [
- 'babel-loader',
- {
- loader: 'react-svg-loader',
- options: {
- svgo: {
- plugins: [
- { inlineStyles:
- {
- onlyMatchedOnce: false,
- },
- },
- ],
- },
- },
- },
- ],
- },
- );
- return configCopy;
- },
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement