首页 > 代码库 > gulp+vue+webpack .net core web项目开发

gulp+vue+webpack .net core web项目开发

使用前准备

  • 安装nodejs
  • npm
  • cnpm
  • 全局安装webpack

PS:cnpm与npm区别,请百度

1.packages.json配置文件,如项目中没有这个文件,则运行npm init即可(PS:cnpm init也可以)

{
  "name": "tcbase.nugetserver.portal",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "ISC",
  "devDependencies": {
    "css-loader": "^0.28.4",
    "gulp": "^3.9.1",
    "gulp-webpack": "^1.5.0",
    "vue": "^2.3.4",
    "vue-loader": "^12.2.1",
    "vue-resource": "^1.3.4",
    "vue-router": "^2.6.0",
    "vue-template-compiler": "^2.3.4",
    "webpack": "^2.6.1",
    "webpack-stream": "^3.2.0"
  },
  "dependencies": {}
}

 

gulp+vue+webpack .net core web项目开发