Closed kinow closed 2 years ago
Ok so this runs, and generates application.js which looks sensible. However the page just shows the background and no widgets.
In the console it says "Yeah! The dashboard has started!", and that's it.
The generated application.js is here: https://termbin.com/oaolz
I tried diffing the precompiled one with the live one, but diff choked (I guess doesn't like the long minified lines). Doing a manual look through they seem identical. When I fetch the live generated one with curl and name it application.js - same problem, just a gray background with no widgets.
Probably something really simple I'm missing here but a bit stumped. There are no errors logged to the console or 404's etc.
@qume is there any chance you used the old Rakefile
? I had the same result with the previous Rakefile
as that was missing the sassc/sass and coffee-script imports. But after adding them, the generated application.js
worked fine.
Awesome my bad I didn't copy over the new Rakefile from the template directory in the gem.
It works. Thank you!!
Excellent news @qume ! Thanks for testing it! I'll merge it, and wait a few more days/weeks to see if we get any other gem updates, issues, improvements, etc. A new version should be released in the next weeks with this Rakefile
. I'll update documentation too. Cheers, Bruno.
Change log updated. Milestone updated. Docs added too to sidebar with a link to this new wiki page: https://github.com/Smashing/smashing/wiki/How-to%3A-precompile-assets
Closes #189
To test:
bundle install
etc has run, the dashboard is running fine)rake precompile-assets
assets/javascripts/application.js
was created