Tag: sails.js browserify

Sails.js指定要从自动插入中排除的JS文件

我试图设置我的帆应用程序使用Browserify(这是工作正常)。 不过,我不想将非浏览过的文件自动注入到我的网页中。 在我的tasks/pipeline.js文件中,我试过这个(我需要浏览的js文件在browserify目录中): // 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', // Dependencies like jQuery, or Angular are brought in here 'js/dependencies/**/*.js', // All of the rest of your client-side js files // will be injected here in no […]