Mirror: The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.
at main 386 B view raw
1export default () => ({ 2 webpack(config) { 3 const rules = config.module.rules[0].oneOf; 4 for (let i = 0; i < rules.length; i++) { 5 const rule = rules[i]; 6 if (rule.loader === 'url-loader') { 7 delete rule.options; 8 rule.query = { 9 limit: 10000, 10 name: 'static/[name].[hash:8].[ext]', 11 }; 12 } 13 } 14 15 return config; 16 }, 17});