gulp-angular-templatecache:在$ templateCache中连接并注册AngularJS模板

时间:2021-02-03 16:47:09
【文件属性】:
文件名称:gulp-angular-templatecache:在$ templateCache中连接并注册AngularJS模板
文件大小:22KB
文件格式:ZIP
更新时间:2021-02-03 16:47:09
javascript angularjs gulp gulp-plugin templatecache gulp-angular-templatecache 在$templateCache连接并注册AngularJS $templateCache 。 | | | 安装 用安装 npm install gulp-angular-templatecache --save-dev 例 gulpfile.js 连接模板目录中所有.html文件的内容,并保存到public / templates.js (默认文件名)。 var templateCache = require ( 'gulp-angular-templatecache' ) ; gulp . task ( 'default' , function ( ) { return gulp . src ( 'templates/**/*.html' ) . pipe ( templateCache ( ) ) . pipe ( gulp . dest ( 'public' ) ) ; } ) ; 结果( public / templates.js ) 样本输出(美化)。 angular . module
【文件预览】:
gulp-angular-templatecache-master
----.jshintrc(317B)
----.travis.yml(62B)
----LICENSE(1KB)
----test()
--------test.js(18KB)
--------mocha.opts(32B)
----README.md(6KB)
----.editorconfig(207B)
----.gitignore(97B)
----index.js(4KB)
----package-lock.json(48KB)
----package.json(1KB)

网友评论