Skip to content

Latest commit

 

History

History
41 lines (38 loc) · 591 Bytes

README.md

File metadata and controls

41 lines (38 loc) · 591 Bytes

Sukusho

インストール

$ npm install -g @hysryt/sukusho

使い方

sukusho.jsonを用意してsukushoを実行

sukusho.json

{
  "viewports": {
    "pc": {
      "device-width": 1280,
      "dpr": 1
    },
    "sp": {
      "device-width": 400,
      "dpr": 2,
      "save-width": 400
    }
  },
  "targets": [
    {
      "name": "menu",
      "url": "https://google.com/",
      "type": "jpeg"
    },
    {
      "name": "example",
      "url": "https://example.com/",
      "type": "jpeg"
    }
  ]
}

viewportsブロックは省略できる。