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

Commit

Permalink
💚 Fix CI builds: grid.json is now pre-minified
Browse files Browse the repository at this point in the history
  • Loading branch information
GitSquared committed Jul 28, 2018
1 parent 1841de8 commit b0d4b0f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 141,721 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -38,3 +38,4 @@ jspm_packages

settings.json
dist
prebuild-src
4 changes: 4 additions & 0 deletions prebuild-minify.js
Expand Up @@ -23,6 +23,10 @@ const recursiveMinify = (dirPath) => {
for (let i = 0; i < files.length; i++) {
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;

switch (filePath.split(".").pop()) {
case "js":
let minified = UglifyJS.minify(fs.readFileSync(filePath, {encoding: "utf-8"}), {
Expand Down

0 comments on commit b0d4b0f

Please sign in to comment.