@openeventkit/event-site 2.0.52 → 2.0.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/gatsby-node.js
CHANGED
|
@@ -347,8 +347,13 @@ exports.onPreBootstrap = async () => {
|
|
|
347
347
|
// Generate the SCSS file
|
|
348
348
|
const scssFontsFile = generateFontFile(siteFonts);
|
|
349
349
|
if(scssFontsFile) {
|
|
350
|
-
|
|
351
|
-
|
|
350
|
+
const standalone = __dirname === path.resolve();
|
|
351
|
+
let fontFilePath = FONTS_SCSS_FILE_PATH;
|
|
352
|
+
if (!standalone) {
|
|
353
|
+
fontFilePath = `${__dirname}/${fontFilePath}`;
|
|
354
|
+
}
|
|
355
|
+
fs.writeFileSync(fontFilePath, scssFontsFile);
|
|
356
|
+
console.log(`CUSTOM FONT FILE ${fontFilePath} generated.`);
|
|
352
357
|
}
|
|
353
358
|
}
|
|
354
359
|
};
|
package/package.json
CHANGED
|
@@ -55,7 +55,7 @@ const fetchBucket = async (etagKeyPre, dataKeyPre, fileName, summitId, lastBuild
|
|
|
55
55
|
|
|
56
56
|
if (eTag) headers.headers = {'If-None-Match': eTag};
|
|
57
57
|
|
|
58
|
-
console.log(`fetchBucket ${url} eTag ${eTag} lastModifiedStored ${lastModifiedStored} lastBuildTime ${lastBuildTime}`);
|
|
58
|
+
//console.log(`fetchBucket ${url} eTag ${eTag} lastModifiedStored ${lastModifiedStored} lastBuildTime ${lastBuildTime}`);
|
|
59
59
|
|
|
60
60
|
return fetch(url, {
|
|
61
61
|
method: 'GET',
|
|
Binary file
|
|
Binary file
|