替换“;templateUrl”:路径带有“;模板”:使用gump的角度指令的内容

Replace "templateUrl":path with "template":content for angular directives using gulp

本文关键字:gump 指令 路径 templateUrl 替换 模板 使用      更新时间:2023-09-26

正在寻找一个gull插件,将角度指令的"templateUrl":path替换为"template":content。

模板可能很大,不能全部以内联方式编写。

使用$templateCache也不是一个选项,因为它引入了额外的依赖性。已经尝试过ngHtml2js和类似的插件,不喜欢它。

您可以将此插件用于Angular 2:https://github.com/ludohenin/gulp-inline-ng2-template或者这个是Angular:https://www.npmjs.com/package/grunt-plugin-angular-template-inline