【文件属性】:
文件名称:grunt-env-config:需要基于env的grunt配置的模板和env模板助手
文件大小:8KB
文件格式:ZIP
更新时间:2021-04-30 14:18:57
JavaScript
grunt-env-config
需要基于env的grunt配置的模板和env模板助手
grunt >= 0.4.0
安装
npm install grunt-env-config
启用环境配置
require ( 'grunt-env-config' ) ( grunt ) ;
模板使用准则
$ require
扩展require模板字符串时,它将自动加载特定模块。 为了加载模块,您应该将对有效配置对象的引用的点访问器附加到$require
// when fetching the value of `a`, it'll load the module './index.js'
// and the `a` holds the value exported from './index.js'
grunt . initConfig ( {
templateRequire :
【文件预览】:
grunt-env-config-master
----.eslintrc(310B)
----Gruntfile.js(1KB)
----example()
--------external-config.js(384B)
--------require-example.js(760B)
----LICENSE(1KB)
----test()
--------gruntfile.js(3KB)
--------fixtures()
----README.md(2KB)
----appveyor.yml(230B)
----.gitignore(57B)
----index.js(3KB)
----.eslintignore(29B)
----package.json(781B)