前端工程配置

2017-10-13  本文已影响17人  Devbrave
{
  "name": "weixinpractice", //文件名
  "version": "1.0.0",            //版本号
  "description": "配置文件", //配置文件描述
  "main": "index.js",            //入口文件名
  "scripts": {                       //插件文件
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",                   //作者
  "license": "ISC"            //证书
}
{
  "name": "weixinpractice",
  "version": "1.0.0",
  "description": "配置文件",
  "main": "index.js",
  "scripts": {
    "start": "node start.js"
  },
  "author": "",
  "license": "ISC",
  "devDependencies": {           //依赖项
    "clean-webpack-plugin": "^0.1.10",
    "css-loader": "^0.23.1",
    "del": "^2.1.0",
    "express": "4.8.1",
    "express-session": "1.7.6",
    "fs": "0.0.2",
     }
}

注意
npm install cnpm -g --registry=https://registry.npm.taobao.org 你没有安cnpm的话等好后可以执行一下这个,这个和npm一样,只是用了淘宝代理,就很快了,命令行npm换成cnpm就可以了

完成!(以上仅做个人学习记录,有问题希望各位指出不当之处)

上一篇 下一篇

猜你喜欢

热点阅读