UNPKG

gatsby-plugin-loadable-components-ssr

Version:
11 lines (9 loc) 535 B
"use strict"; exports.__esModule = true; exports.statsPath = exports.statsFilename = void 0; const statsFilename = 'loadable-stats-build-javascript.json'; // Apparently there's no way to get the build path (public/) as a variable from gatsby. // The code below is as found in gatsby's source code itself: // https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/cache-dir/static-entry.js#L21 exports.statsFilename = statsFilename; const statsPath = `${process.cwd()}/public/${statsFilename}`; exports.statsPath = statsPath;