网络监控器
小型ruby脚本可运行ping 60秒并评估丢失百分比并记录结果。
If the loss percentage is 0
Log basic stats
Sleep for 4 mins
If the loss percentage is less than 10 percent
Log basic stats
Immediately repeat ping monitoring
If the loss percentage greater than 10 per
covid19-stats-nuxt
我惊人的Nuxt.js项目
构建设置
# install dependencies
$ npm install
# serve with hot reload at localhost:3000
$ npm run dev
# build for production and launch server
$ npm run build
$ npm run start
# generate static project
$ npm run generate
一点一点地学习Angular。
有用的工具
webpack捆绑分析器
npm install webpack-bundle-analyzer --save-dev
ng build --stats-json在构建中添加stats.json
npx webpack-bundle-analyzer dist/angular-build-serving/stats.json
ng build --aot优化构建
ng b --prod构建产品环境,优化产品构建
ng serve --port
npm-stats
从您的npm软件包统计信息中生成漂亮的图表
访问
:school: 讲解
如果您愿意,可以通过以下教程学习如何构建类似的服务:
构建设置
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production a