Skip to content

Imperater/starrier.github.io

 
 

Repository files navigation

Starrier's Blog

Build Status

一. Gulp 说明

如果在使用 gulp 命令时,导致压缩 html 无法被压缩,出现异常,目前的解决方法是,在 gulpfile.js 中禁用 minify-html 模块

特别说明

  1. 使用 hexo new 语法生成的文章中:
---
title:  
date:  
tags:  
excerpt:  
swiper:
keywords:  
description:  
---

所以 value 禁止出现 markdown 语法内容。

站点性能检测

  1. 安装插件
npm install 
  1. 新增文件 budget.json,直接复制下文内容
[
  {
    "path": "/*",
    "timings": [
      {
        "metric": "interactive",
        "budget": 3000
      },
      {
        "metric": "first-meaningful-paint",
        "budget": 1000
      }
    ],
    "resourceSizes": [
      {
        "resourceType": "script",
        "budget": 125
      },
      {
        "resourceType": "total",
        "budget": 300
      }
    ],
    "resourceCounts": [
      {
        "resourceType": "third-party",
        "budget": 10
      }
    ]
  }
]
  1. 运行
lighthouse http://localhost:4000 --budget-path=./budget.json

About

This is the site for Starrier Org. to record info.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 66.7%
  • HTML 24.2%
  • Stylus 9.0%
  • CSS 0.1%