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"

最新文章

  1. Using Celery with Djang
  2. struts2+spring+hibernte整合示例
  3. 批量创建SO
  4. UIViewController的edgesForExtendedLayout属性
  5. EL 表达式
  6. Tools之FindBugs
  7. [Hive - LanguageManual ] ]SQL Standard Based Hive Authorization
  8. CentOS 6.7安装配置Ansible
  9. [转] ubuntu 一些常用软件的安装
  10. Linux下chkconfig命令详解(转)
  11. 快速排序算法之我见(附上C代码)
  12. 神经网络NN笔记
  13. win8快捷键
  14. Spring学习笔记5——注解方式AOP
  15. FORM内置系统函数
  16. HTML&CSS_基础04
  17. numpy知识点
  18. IDEA拷贝操作
  19. 生成建表脚本up_CreateTable
  20. linux内核分析第三次实验

热门文章

  1. Maven学习总结(15)——Maven 项目中pom.xml详解
  2. 洛谷 P1143 进制转换
  3. update进行跨表之间的更新
  4. Eclipse导出Library
  5. CC2530定时器使用
  6. 微信支付v2开发(7) 告警通知
  7. 学习笔记:TypeScript入门——基础类型
  8. python整除
  9. Redis笔记---set
  10. 使用wepy开发微信小程序商城第三篇:购物车(布局篇)