0
如您所知,Sails v0.1X不再需要 - 鏈接器。在這種情況下,我如何讓gruntfile.js在bootstrap.js加載之前加載jQuery?如何在沒有鏈接器的Sails.js v0.12下加載jQuery BEFORE bootstrap.js?
如您所知,Sails v0.1X不再需要 - 鏈接器。在這種情況下,我如何讓gruntfile.js在bootstrap.js加載之前加載jQuery?如何在沒有鏈接器的Sails.js v0.12下加載jQuery BEFORE bootstrap.js?
您可以設置特定的順序加載tasks/pipeline.js
文件中您的資產:
// Client-side javascript files to inject in order
// (uses Grunt-style wildcard/glob/splat expressions)
var jsFilesToInject = [
// Load sails.io before everything else
'js/dependencies/sails.io.js',
// Load jQuery before Bootstrap and other libraries
'js/dependencies/jquery.js',
'js/dependencies/bootstrap.js',
// Dependencies are brought in here
'js/dependencies/**/*.js',
// All of the rest of your client-side js files
// will be injected here in no particular order.
'js/**/*.js'
];
你的問題並不十分清楚。我建議閱讀[如何提出一個好問題](http://stackoverflow.com/help/how-to-ask),然後回到這裏,讓事情更容易理解 – Takarii
我的問題究竟有哪些不清楚? – Dzintars
2行文字並沒有告訴我們很多。查看我發佈的鏈接,以便更好地瞭解如何使問題清晰並可回答。 – Takarii