1. 首页
  2. 数据库
  3. 其它
  4. grunt yslow:使用grunt任务调用的YSlow库测试网页性能 源码

grunt yslow:使用grunt任务调用的YSlow库测试网页性能 源码

上传者: 2021-04-26 08:07:54上传 ZIP文件 49.12KB 热度 33次
咕y声 使用无头WebKit浏览器PhantomJS测试页面性能的艰巨任务。 入门 使用以下命令在项目的[grunt.js gruntfile]旁边安装此grunt插件: npm install grunt-yslow --save-dev 然后将此行添加到项目的grunt.js gruntfile中: grunt . loadNpmTasks ( 'grunt-yslow' ) ; 还要确保phantomjs在$PATH 。 您可以添加./node_modules/grunt-yslow/node_modules/grunt-lib-phantomjs/node_modules/phantomjs或执行$ npm install --global phantomjs ## Config必须在您的Gruntfile.js中以任务名称yslow指定所有配置。 ###选项 阈值(对象
下载地址
用户评论