【发布时间】:2016-05-23 17:22:13
【问题描述】:
嗨,我有一个问题 :) 我开发了一个 Angular 项目,它在我的 localhost apache 中运行良好。我将angular 1.4.3 用于前端,node.js 用于后端。现在我需要使用 Grunt 对其进行版本控制。
我做了很多配置(比如那个枫树的东西禁用了。it changes all variables names such as a,b,c from indexCounter,PersonCounter,AgencyCounter and it causes some problems.)但是每次我尝试运行时都会出错。就像 [module] 找不到。我的项目在我的本地机器上运行如果我不咕哝但在咕哝之后我将 3 个文件作为vendor.js vendor2.js and app.js。在vendor.js 我有native angular js 文件。在vendor2.js 我有plugins。最后在app.js 我有controllers。我按此顺序将它们添加到我的索引 HTML 中;
vendor.js vendor2.js app.js
你对此有什么想法吗?
【问题讨论】:
标签: javascript angularjs node.js gruntjs concat