我删除了.tmp文件夹中的js文件。现在,sails lift
上没有重新编译任何js文件。所有需要的JS文件都包含在Gruntfile.js
中,如下所示:
var jsFilesToInject = [
// Below, as a demonstration, you'll see the built-in dependencies
// linked in the proper order order
// Bring in the socket.io client
'linker/js/socket.io.js',
// then beef it up with some convenience logic for talking to Sails.js
'linker/js/sails.io.js',
// A simpler boilerplate library for getting you up and running w/ an
// automatic listener for incoming messages from Socket.io.
'linker/js/app.js',
// *-> put other dependencies here <-*
'linker/js/jquery.min.js',
'linker/js/index.js',
// All of the rest of your app scripts imported here
'linker/**/*.js'
];
并且还将脚本包含在layout.ejs
的末尾。
我是node.js,sails.js,Grunt以及整个资产管理事务的新手。我在Stackoverflow上有一些类似的问题,但没有答案。