[NPM] Use custom config settings in your npm scripts
2024-08-31 21:10:28
In addition to package.json level variables (such as name and version), you can have custom conf settings that can be used in your npm scripts. These config values can be overridden outside of the package.json by using the npm config set command if necessary.
{
"name": "react-file-size",
...
"config": {
"port": ""
},
....
}
"server": "npm-run-all --parallel server:*",
"server:create": "http-server public/$npm_package_version -p $npm_package_config_port",
"server:launch": "open http://localhost:$npm_package_config_port"
最新文章
- Using Celery with Djang
- struts2+spring+hibernte整合示例
- 批量创建SO
- UIViewController的edgesForExtendedLayout属性
- EL 表达式
- Tools之FindBugs
- [Hive - LanguageManual ] ]SQL Standard Based Hive Authorization
- CentOS 6.7安装配置Ansible
- [转] ubuntu 一些常用软件的安装
- Linux下chkconfig命令详解(转)
- 快速排序算法之我见(附上C代码)
- 神经网络NN笔记
- win8快捷键
- Spring学习笔记5——注解方式AOP
- FORM内置系统函数
- HTML&;CSS_基础04
- numpy知识点
- IDEA拷贝操作
- 生成建表脚本up_CreateTable
- linux内核分析第三次实验