Mattia72
Mattia72

Reputation: 1179

Dashing doesn't detect change of coffescript

I'm working on some dashing widgets in a dashboard project.

Normally if I work on a coffeescript and I save it, I have to reload the page in the browser, and I can see the effect of my changes in the widget.

For some time the change won't do any effect in the browser. I thought, it may be a browser cache issue and I tried clear the cache, but nothing changed. I tried another browser, same issue.

I can see my changes in the browser only if I change the classname off the widget.

Is there any simpler method?

Upvotes: 1

Views: 1284

Answers (2)

CoffeeMonster
CoffeeMonster

Reputation: 2190

I encountered a similar issue. The widget would not refresh to reflect my html changes (new <h2> tag). Restarting / clear-cache were the first things I tried. I use Chrome and I found this note in the Dashing-Workshop :

Note: Chrome is sometimes weird, and it's possible that your browser isn't showing the number anymore in the widget. If that's the case load dashing in a brand new tab to clear the cache.

I resolved my issue by turning off caching "Developer Tools > Networking > Disable cache [x]"

Upvotes: 2

Larry Cai
Larry Cai

Reputation: 60083

It shall work, Use chrome developer tool to debug it

  • console.log to print to console
  • use inspect element to see the html/css

Upvotes: 0

Related Questions