1、
[root@iZn4ad58x9jnakdwcyl2qtZ axx]# npm run
Scripts available in [email protected] via `npm run-script`:
dev
vue-cli-service serve
build:prod
vue-cli-service build
build:stage
vue-cli-service build --mode staging
preview
node build/index.js --preview
svgo
svgo -f src/icons/svg --config=src/icons/svgo.yml
lint
eslint --ext .js,.vue src
test:unit
jest --clearCache && vue-cli-service test:unit
test:ci
npm run lint && npm run test:unit
运行 npm run 查看编译的命令, 然后执行 npm run build:prod 编译项目:
[root@iZn4ad58x9jnakdwcyl2qtZ axx]# npm run build:prod
2、pm2 start npm -- run dev
标签:npm,vue,run,cli,pm2,启动,--,build From: https://www.cnblogs.com/z360519549/p/17782973.html