|
|
1
53
使用grunt-env插件: https://npmjs.org/package/grunt-env 并设置您的配置:
在您的gruntfile中,您可能会定义一些默认任务:
因此,如果您首先运行“grunt default”,则会设置env变量,然后运行“另一个任务” 如果您想通过命令行选项指定当前环境,可以使用grunt.option:
在这个例子中,如果你用
|
|
|
pstrg · 批处理回显命令不写入文件[关闭] 2 年前 |
|
|
Jasper Bart · Path的路径,它有区别吗? 2 年前 |
|
John Beasley · PHP没有读取.env文件 2 年前 |
|
david.perez · 如何在bash中用空格扩展变量 2 年前 |
|
|
mcmohan_cycle · ENV变量未在渐变过程中更新 2 年前 |