开课啦单页应用项目教师端
Build Setup
# install global dependencies
npm i -g supervisor
# install dependencies
npm install
# serve with hot reload at localhost:3000
npm run dev
# serve mock
npm run mock
# start dev serve | mock serve
npm start
# serve with hot reload at localhost:3000 have lint
npm run dev / npm start -d lint
# build for stable with minification
npm run stable
# build for sit with minification
npm run sit
# build for production with minification
npm run prod
#node变量 代码中可直接使用的:
CONFIG、ENV_CONFIG、PAGE_LIST
# build for production and view the bundle analyzer report
npm run build --report
For detailed explanation on how things work, checkout the guide and docs for vue-loader.