这是一个webpack工程,它通过vue-cli构建,相关版本信息:
version:npm 3.10.10
vue-cli:2.9.1
本工程由vue cli命令来构建(webpack项目):
vue init webpack myproject
A newer version of vue-cli is available.
latest: 2.9.2
installed: 2.9.1
? Project name myproject
? Project description A Vue.js project
? Author yasz yaszyoyo@gmail.com
? Vue build standalone
? Install vue-router? Yes
? Use ESLint to lint your code? No
? Set up unit tests Yes
? Pick a test runner jest
? Setup e2e tests with Nightwatch? Yes
? Should we run npm install
for you after the project has been created? (recommended) npm
vue-cli · Generated "myproject".
运行本项目方法:
cd myproject //进入项目目录
npm install //在项目中安装依赖包
npm run dev //运行项目
网友评论