Giter Club home page Giter Club logo

Comments (10)

samthor avatar samthor commented on June 26, 2024

Is there any chance you can send us a fix for the other issues? Having the site work even without Closure on Windows would be a great start—there's only a handful of scenes which still use that.

My 2c, I wonder if we pass specific /'s into the Closure compiler that Windows doesn't like.

from santa-tracker-web.

SneezingCactus avatar SneezingCactus commented on June 26, 2024

I'll try to find and send the fixes (I don't remember what did I edit to fix it 😅)

from santa-tracker-web.

SneezingCactus avatar SneezingCactus commented on June 26, 2024

So, what I first did was add .posix to the require("path") in import-utils.js to fix the "unsupported on Windows" problem.
I also added the .posix in modern-vfs-middleware.js to fix most virtual files (like config.json) not working.
The last thing I did was removing the /st/ prefix on static paths to fix certain static js files (such as santa-error.js) going way too back and going outside /st/ in some requires, causing those required js files to not be loaded. (I'm pretty sure there's a much nicer workaround to this though)

Hope this helps!

from santa-tracker-web.

SneezingCactus avatar SneezingCactus commented on June 26, 2024

Also, for some reason, the 4 background village svg layers you'd see at the start of the page are missing.

from santa-tracker-web.

SneezingCactus avatar SneezingCactus commented on June 26, 2024

I fixed it! There were two problems:
Problem #1 is that santa-vfs, closure-compiler and closure-compiler-js make changes in paths, and since Windows uses \ instead of /, it breaks, so I added .posix to each require("path").
Problem #2 is that closurePlugin in santa-vfs gets the scene name and flags by the wrong m index (it uses m[1] and m[2] where it should be m[2] and m[3]), so I corrected it.

from santa-tracker-web.

samthor avatar samthor commented on June 26, 2024

@SneezingCactus can you send a PR to fix this?

from santa-tracker-web.

SneezingCactus avatar SneezingCactus commented on June 26, 2024

I would, but the problem is that in order to fix closure I'd have to modify closure-compiler and closure-compiler-js which are part of the google closure module, and I can't edit that (unless I can send a PR to the google closure repo)

from santa-tracker-web.

SneezingCactus avatar SneezingCactus commented on June 26, 2024

I can send a PR for the other fixes though

from santa-tracker-web.

samthor avatar samthor commented on June 26, 2024

from santa-tracker-web.

SneezingCactus avatar SneezingCactus commented on June 26, 2024

Ok, I sent the PR

from santa-tracker-web.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.