javascript - SailsJS: Requiring Assets, Such As, sails.io.js -
as problem short & sweet, i'll keep question so.
can't load assets.
using sails.js (v0.11.n
).
can't load assets... that's it...
i'm trying load sails.io.js
-- or assets/alert.js
.
<script type="text/javascript" src="/js/dependencies/sails.io.js"></script>
doesn't work :(
even when switch src
/alert.js
-- nothing.
i'm pasting script tag inside of /signup
view -- loads fine -- know sure heck i'm doing something(s) wrong.
this due issue sails new
app generator has been fixed. issue new app, grunt hook disabled, assets not copied automatically app's .tmp/public
folder @ lift time. supposed happen if --no-front-end
option used sails new
, happening time. can check problem looking in app's .sailsrc
file; if see:
"hooks": { "grunt": false }
remove it, , assets accessible again.
Comments
Post a Comment