Mirror: The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

(chore) - Fix docs images in static export

See: https://github.com/react-static/react-static/pull/1425

+19 -1
+17
packages/site/plugins/assets-fix/node.api.js
··· 1 + export 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 + });
-1
packages/site/plugins/monorepo-fix/node.api.js
··· 11 11 (context, request, callback) => { 12 12 if (/^[.\/]/.test(request)) { 13 13 return callback(); 14 - e; 15 14 } 16 15 17 16 const res = resolveFrom(`${context}/`, request);
+2
packages/site/static.config.js
··· 8 8 9 9 export default { 10 10 plugins: [ 11 + resolve(__dirname, 'plugins/assets-fix/'), 11 12 resolve(__dirname, 'plugins/monorepo-fix/'), 12 13 resolve(__dirname, 'plugins/react-router/'), 13 14 (isStaging || isProduction) && resolve(__dirname, 'plugins/preact/'), ··· 30 31 buildArtifacts: 'node_modules/.cache/react-static/artifacts/', 31 32 devDist: 'node_modules/.cache/react-static/dist/', 32 33 temp: 'node_modules/.cache/react-static/temp/', 34 + assetsPath: 'static', 33 35 public: 'public', // The public directory (files copied to dist during build) 34 36 }, 35 37