karma-wrap-preprocessor:使用 lodash 模板包装文件

时间:2024-07-04 01:09:52
【文件属性】:

文件名称:karma-wrap-preprocessor:使用 lodash 模板包装文件

文件大小:4KB

文件格式:ZIP

更新时间:2024-07-04 01:09:52

JavaScript

业力包装预处理器 使用 lodash 模板包装文件。 安装 npm install --save-dev karma-wrap-preprocessor 配置 // karma.conf.js module . exports = function ( config ) { config . set ( { files : [ 'app/**/*.js' , 'test/**/*.js' ] , preprocessors : { 'app/**/*.js' : [ 'wrap' ] } , wrapPreprocessor : { // Example: wrap each file in an IIFE template : '(function () { <%= conten


【文件预览】:
karma-wrap-preprocessor-master
----.jshintrc(373B)
----lib()
--------index.js(681B)
----.travis.yml(49B)
----test()
--------fixture()
--------spec.js(2KB)
----README.md(1010B)
----.gitignore(52B)
----package.json(727B)

网友评论