前端使用gulp工具構建項目依賴包

 
 
package.json:
{
  "name": "project",
  "version": "0.0.0",
  "description": "this is a demo project",
  "main": "gulpfile.js",
  "scripts": {
    "test": "test Success"
  },
  "repository": {
    "type": "git",
    "url": "no"
  },
  "keywords": [
    "demo",
    "pc"
  ],
  "devDependencies": {
    "autoprefixer": "^6.3.3",
    "cssnano": "^3.5.2",
    "gulp": "^3.9.0",
    "gulp-concat": "^2.6.0",
    "gulp-clean": "^0.3.1",
    "gulp-livereload": "^3.8.1",
    "gulp-minify-css": "^1.2.3",
    "gulp-notify": "^2.2.0",
    "gulp-plumber": "^1.1.0",
    "gulp-postcss": "^6.1.0",
    "gulp-sass": "~2.0.4",
    "gulp-rename": "^1.2.2",
    "gulp-sourcemaps": "^1.6.0",
    "gulp-uglify": "^1.5.1",
    "gulp-imagemin": "^3.0.3",
    "imagemin-pngquant": "^4.0.0",
    "gulp-webserver": "^0.9.1",
    "gulp.spritesmith": "^6.0.0"
  }
}
View Code

安裝方法:
一、下載 node.js安裝,並配置環境變量.
二、
全局安裝gulp npm install gulp -g .
三、修改registry registrynpm config set registry "https://registry.npm.taobao.org/".
npm config set registry "https://registry.npm.taobao.org/".
四、 項目目錄下運行 npm install或cnpm install(事先安裝cnpm).
相關文章
相關標籤/搜索