A Vue.js project
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
# run unit tests
npm run unit
# run e2e tests
npm run e2e
# run all tests
npm test
For a detailed explanation on how things work, check out the guide and docs for vue-loader.
我来做一下笔记吧,省的日后忘记了又来抱怨 V
1.全局安装 vue-cli 命令 npm install vue-cli -g
2.初始化项目vue+webpack 命令 vue init webpack myvue
3.配置打包路径问题 config/index.js ——assetsPublicPath: './'
build/util.js ——publicPath: '../../' ——fallback下边