View our GitHub

Please visit sails-docs on GitHub to view documentation on your mobile device.

Edit Page

myApp/assets/js/dependencies

Purpose

This directory allows grunt to load javascript files in index.ejs before the rest of the javascript files in the js directory.

js/
| main.js
| apple.js
| dependencies/
| | sails.io.js

This setup will create

<!--SCRIPTS-->
<script src="/js/dependencies/sails.io.js"></script>
<script src="/js/apple.js"></script>
<script src="/js/main.js"></script>
<!--SCRIPTS END-->

Is something missing?

If you notice something we've missed or could be improved on, please follow this link and submit a pull request to the sails-docs repo. Once we merge it, the changes will be immediately reflected on the website.