iview-project
iview-project copied to clipboard
This project is build for Vue.js 2 + vue-router + webpack2 + iView 3
下载下来按照教程执行,并未生成index.html访问出错,还是自己搭脚手架比较好
$ npm run dev \>[email protected] dev U:\Workspace\VSCode\Vue\ChinaLife-vue \>webpack-dev-server --content-base ./ --open --inline --hot --compress --history-api-fallback --config webpack.dev.config.js fs.js:128 throw new ERR_INVALID_CALLBACK(); ^ TypeError [ERR_INVALID_CALLBACK]: Callback must be a function at...
![image](https://user-images.githubusercontent.com/38757109/50417311-acc53a00-0860-11e9-9c68-a1761a83b643.png) 试了两次都是一样的
C:\Users\Administrator\Documents\GitHub\iview-project>npm run dev > [email protected] dev C:\Users\Administrator\Documents\GitHub\iview-project > webpack-dev-server --content-base ./ --open --inline --hot --compress --history-api-fallback --config webpack.dev.config.js fs.js:157 throw new ERR_INVALID_CALLBACK(); ^ TypeError [ERR_INVALID_CALLBACK]: Callback must be a function...
URIError: Failed to decode param '/%3C%=%20htmlWebpackPlugin.files.css[0]%20%%3E'
0 info it worked if it ends with ok 1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe', 1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js', 1 verbose cli 'run', 1 verbose cli 'init' ] 2...
### 1、各种版本 ` "iview": "^3.0.0", "vue": "^2.5.16", "vue-router": "^2.8.1" "webpack": "^2.2.1", "webpack-dev-server": "^2.4.1", "webpack-merge": "^3.0.0" ` ### 2、base.config.js文件 ` const path = require('path'); const webpack = require('webpack'); const ExtractTextPlugin =...
C:\Users\10517\Desktop\iview-project-3.0>npm run init > [email protected] init C:\Users\10517\Desktop\iview-project-3.0 > webpack --progress --config webpack.dev.config.js 0% compilingfs.js:133 throw new ERR_INVALID_CALLBACK(); ^ TypeError [ERR_INVALID_CALLBACK]: Callback must be a function at maybeCallback (fs.js:133:9) at Object.write...