Comments (3)
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.
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.
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)
- scss reloading not being triggered HOT 2
- Why is it named figwheel? HOT 1
- Buffers won't connect to CIDER/Figwheel REPL HOT 1
- Figwheel fails to recognize Java version - issues bad warning HOT 5
- Update REPL integration wiki documentation
- Code reloading fails if you use goog namespace
- Separate builds should truly be separate
- Hello world template opens REPL and detects changes but does not run HOT 1
- Erroneous java version warning HOT 1
- REPL and line splitting mid-form HOT 2
- Confusing project.clj syntax error
- How to create production build? HOT 1
- Unable to change Figwheel server-port HOT 1
- Support non-boolean values for :output-wrapper compiler option
- Uncaught ReferenceError: on_js_reload is not defined
- websocket connection-url should default to window.location.hostname instead of localhost HOT 1
- unable to change websocket-host to window.location.host HOT 1
- Can get the nrepl session establshed HOT 1
- On a brand new project `lein figwheel` -> `java.lang.NullPointerException`
- Running lein figwheel throws java.lang.NullPointerException: Cannot invoke "clojure.lang.IFn.invoke(Object)" because "loc" is null HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lein-figwheel.