Giter VIP home page Giter VIP logo

Comments (3)

bhauman avatar bhauman commented on May 17, 2024

Hey Joel,
I was just looking at ankha the other day. Also, I just looked at your page and saw Shodon. Damn, wish I had known about that a while ago.

Anyway, I think I have a solution for this problem. The thing is, you are connecting to the websocket server correct?

That same server is serving the static files, so I think the thing to do is to get the hostname for the files that are being loaded from the :websocket-url and then load the files from the websocket server as a rule. There is a high probability that this will work for most cases because the websocket connection has to be there in the first place. I should have written it like this from the beginning, it would have saved a lot of headaches.

Working on a fix right now.

If you don't think this will work for you, let me know.

from lein-figwheel.

bhauman avatar bhauman commented on May 17, 2024

I added a :url-rewriter option that takes a function which will be passed the full asset request url of javascript files and css files. I also modified the client so that it defaults to loading files from the host of the :websocket-url so this may obviate your need to use the :url-rewriter.

from lein-figwheel.

noprompt avatar noprompt commented on May 17, 2024

Also, I just looked at your page and saw Shodon. Damn, wish I had known about that a while ago.

Thanks for the hat tip. Ankha has turned out to be more useful than Shodan (which has several patches I still need to push from other projects) but both can be very helpful for debugging. I guess I'm just not a big fan of (println what-the-heck?). 😆 Feel free to send me a patch if you have ideas!

Figwheel has turned out to be a really awesome tool for me. Paired up with a Weasel REPL you just can't beat it.

I added a :url-rewriter option that takes a function which will be passed the full asset request url of javascript files and css files.

Awesome! That's exactly what we need. I really appreciate it! Looking forward to the release (if you haven't cut it already!).

from lein-figwheel.

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.