grunt如何处理requirejs的“text!”插件?
用grunt-contrib-requirejs处理require模块的时候,如果遇到依赖
text!
插件的模块会出错:
TypeError: Cannot read property 'normalize' of undefined
In module tree:ngApp ngComponents
把
define(['angular','Skycons','require','text!tabsTemp'],function(....){
....
});
中最后一项
text!tabsTemp
删掉就能正确执行。应该如何解决呢?
grunt-contrib-requirejs grunt requirejs
Dr.Moth
9 years, 5 months ago