steps
-
install webpack vue-cli
-
check npm version
$ npm -v 5.6.0
-
install use cnpm
$ npm install -g cnpm --registry=https://registry.npm.taobao.org $ cnpm i webpack -g $ cnpm i vue-cli -g
-
-
create framework
-
use vue-cli
$ vue init webpack-simple hello ? Project name hello ? Project description a hello vue.js project ? Author hqlgree2 <hqlgree2@gmail.com> ? License MIT ? Use sass? Yes vue-cli ยท Generated "hello". To get started: cd hello npm install npm run dev
-
run hello
$ cd hello $ ls README.md index.html package.json src webpack.config.js # use cnpm instead of npm $ cnpm i ... npm notice created a lockfile as package-lock.json. You should commit this file. ... $ ls README.md node_modules package.json webpack.config.js index.html package-lock.json src $ npm run dev $ cnpm install --save-dev sass-loader
-
-
choose ui