Build Setup
# clone the project
git clone https://github.com/PanJiaChen/vue-admin-template.git
完成之后,修改項目名稱-修改名稱之后idea會提示報錯,點擊報錯信息,然后將彈出的對話框中的git依賴“-”刪掉,然后執行下面的語句運行項目
# enter the project directory
cd vue-admin-template
# install dependency
npm install
# develop
npm run dev
This will automatically open http://localhost:9528
Build
# build for test environment
npm run build:stage
# build for production environment
npm run build:prod
Advanced
# preview the release environment effect
npm run preview
# preview the release environment effect + static resource analysis
npm run preview -- --report
# code format check
npm run lint
# code format check and auto fix
npm run lint -- --fix
Refer to Documentation for more information