Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

Commit

Permalink
✨ Do not minify themes, keyboards, settings
Browse files Browse the repository at this point in the history
  • Loading branch information
GitSquared committed Dec 25, 2018
1 parent b0a19a0 commit fcf6b68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions prebuild-minify.js
Expand Up @@ -24,8 +24,8 @@ const recursiveMinify = (dirPath) => {
let filePath = dirPath + '/' + files[i];
if (fs.statSync(filePath).isFile()) {

// Grid.json is a massive file that's already pre-minified. Do not process.
if (filePath.endsWith("grid.json")) return;
// Do not process grid.json because it's heavy and pre-minified, and themes and keyboard files to leave them in a human-readable state
if (filePath.endsWith(".json")) return;

switch (filePath.split(".").pop()) {
case "js":
Expand Down
2 changes: 1 addition & 1 deletion src/_boot.js
Expand Up @@ -58,7 +58,7 @@ if (!fs.existsSync(settingsFile)) {
keyboard: "en-US",
theme: "tron",
audio: false
}));
}, 4));
}

// Copy default themes & keyboard layouts & fonts
Expand Down

0 comments on commit fcf6b68

Please sign in to comment.