A Vue.js project
前端代码打包环境:
1.node v8.10.0
2.npm v5.6.0
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# run with development api in develop environment, same as 'npm run dev'
npm run dev:dev
# run with test api in develop environment
npm run dev:test
# run with production api in develop environment
npm run dev:prod
# build for production with minification in 'dist' folder
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.