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

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -