Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

pwa-asset-generator

elegantapp97.2kMIT8.0.5TypeScript support: included

Automates PWA asset generation and image declaration. Automatically generates icon and splash screen images, favicons and mstile images. Updates manifest.json and index.html files with the generated images according to Web App Manifest specs and Apple Hum

pwa, puppeteer, chromium, icon, launch-image, ios, android, splashscreen, splash-screen, image-generation, image, manifest, mobile, favicon, mstile, pwa-assets

readme

pwa-asset-generator ✨

npm npm downloads node Build Status semantic-release open-collective

Automates PWA asset generation and image declaration. Automatically generates icon and splash screen images, favicons and mstile images. Updates manifest.json and index.html files with the generated images according to Web App Manifest specs and Apple Human Interface guidelines.

Usage demonstration

Motivation — read the full blog post here

A PWA on iOS with icons and splash screens

When you build a PWA with a goal of providing native-like experiences on multiple platforms and stores, you need to meet with the criteria of those platforms and stores with your PWA assets; icon sizes and splash screens. Such criteria are;

  • Google's Android platform respects Web App Manifest API specs, and it expects you to provide at least 2 icon sizes in your manifest file - https://web.dev/add-manifest/#icons 🤔

  • Apple's iOS currently doesn't support Web App Manifest API specs. You need to introduce custom html tags to set icons and splash screens to your PWA 🤔

    • You need to introduce a special html link tag with rel apple-touch-icon to provide icons for your PWA when it's added to home screen. Read more about it on Apple's Icon Guidelines and Safari Web Content Guide.
    • You need to introduce a special html link tag with rel apple-touch-startup-image to provide a splash screen for your PWA to display when it's opened and in the background. You need to create a splash screen image for every resolution on Apple's Launch Screen Guidelines and html tag with media attr for each image like <link rel="apple-touch-startup-image" href="temp/apple-splash-2048-2732.png" media="(device-width: 1024px) and (device-height: 1366px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)">. Unfortunately, this requirement is not documented on the Safari Web Content Guide sufficiently.

Creating icon and splash screen images for all the platforms, maintaining sizes and quality for all and adding html tags for each image can be overwhelming. So, why not automate it? 💡

Features

PWA Asset Generator automates the image generation in a creative way. Having Puppeteer at its core enables lots of possibilities.

  • Generates both icons and splash screens with optional --icon-only --splash-only --landscape-only and --portrait-only flags ✨

  • Updates your manifest.json and index.html files automatically for declaring generated image assets 🙌

  • Scrapes the latest specs from Apple Human Interface guidelines website via Puppeteer to make your PWA ready for all/recent iOS devices out there 🤖

    • Supports offline mode and uses static spec data when things go wrong with scraping 📴
    • Updates static spec data before each release automatically and monitors spec changes everyday 🔄
  • Uses the Chrome browser as it’s a canvas of your fav image editor. It uses a shell HTML on the fly as an art board and centers your logo before taking screenshots for each resolution via Puppeteer 🤖

  • You can provide your source in multiple formats; a local image file, a local HTML file, a remote image or HTML file 🙌

    • When it’s an image source, it is centered over the background option you provide 🌅
    • When it’s an HTML source, you can go as creative as you like; position your logo, use SVG filters, use variable fonts, use gradient backgrounds, use media queries while generating dark mode splash screens, use typography and etc. Your HTML file is rendered on Chrome before taking screenshots for each resolution 🎨
  • Uses puppeteer-core instead of puppeteer and only installs Chromium if it doesn't exist on the system. Saves waste of ~110-150mb of disk space and many seconds from the world per each user 🌎⚡️

  • Supports dark mode splash screens on iOS! So, you can provide both light 🌕 and dark 🌚 splash screen images to differentiate your apps look & feel based on user preference 🌙

  • Supports PWA maskable icons by declaring them in manifest file adaptively 🖼

  • Supports flexible tag formatting and path customization options to comply with various development environments. You can adjust your output using single quotes --single-quotes, self-closing tags --xhtml, path prefixes --path and path overrides --path-override 📝

  • Supports generating classic web app icons such as favicons --favicon and Windows static tiles --mstile

Install

$ npm install pwa-asset-generator

One-off execution

$ npx pwa-asset-generator

Read more about npx here.

Usage

$ pwa-asset-generator --help

  Usage
    $ pwa-asset-generator [source-file] [output-folder]

    The assets will be saved to the folder where the command is executed if no output-folder provided.

  Options
    -b --background             Page background to use when image source is provided: css value  [default: transparent]
    -o --opaque                 Shows white as canvas background and generates images without transparency  [default: true]
    -p --padding                Padding to use when image source provided: css value  [default: "10%"]
    -s --scrape                 Scraping Apple Human Interface guidelines to fetch splash screen specs  [default: true]
    -m --manifest               Web app manifest file path to automatically update manifest file with the generated icons
    -i --index                  Index HTML file path to automatically put splash screen and icon meta tags in
    -a --path                   Path prefix to prepend for href links generated for meta tags
    -v --path-override          Override the path of images used in href/src tags of manifest and HTML files
    -t --type                   Image type: png|jpg  [default: jpg - with the exception of manifest files]
    -q --quality                Image quality: 0...100 (Only for JPG)  [default: 70]
    -h --splash-only            Only generate splash screens  [default: false]
    -c --icon-only              Only generate icons  [default: false]
    -f --favicon                Generate favicon image and HTML meta tag  [default: false]
    -w --mstile                 Generate Windows static tile icons and HTML meta tags  [default: false]
    -e --maskable               Declare icons in manifest file as maskable icons  [default: true]
    -l --landscape-only         Only generate landscape splash screens  [default: false]
    -r --portrait-only          Only generate portrait splash screens  [default: false]
    -d --dark-mode              Generate iOS splash screen meta with (prefers-color-scheme: dark) media attr  [default: false]
    -u --single-quotes          Generate HTML meta tags with single quotes  [default: false]
    -x --xhtml                  Generate HTML meta tags by self-closing the tags  [default: false]
    -g --log                    Logs the steps of the library process  [default: true]
    -n --no-sandbox             Disable sandbox on bundled Chromium on Linux platforms - not recommended  [default: false]

  Examples
    $ pwa-asset-generator logo.html
    $ pwa-asset-generator logo.svg -i ./index.html -m ./manifest.json
    $ pwa-asset-generator https://your-cdn-server.com/assets/logo.png ./ -t jpg -q 90 --splash-only --portrait-only
    $ pwa-asset-generator logo.svg ./assets --splash-only --xhtml --single-quotes
    $ pwa-asset-generator logo.svg ./assets --scrape false --icon-only --path "%PUBLIC_URL%"
    $ pwa-asset-generator logo.svg ./assets --icon-only --favicon --opaque false --maskable false --type png
    $ pwa-asset-generator logo.svg ./assets --dark-mode --background dimgrey --splash-only --quality 80
    $ pwa-asset-generator logo.svg ./assets --padding "calc(50vh - 5%) calc(50vw - 10%)" --path-override "./your-custom-image-folder-path"
    $ pwa-asset-generator https://elegantapp.github.io/pwa-asset-generator/static/logo.png ./temp -p "15%" -b "linear-gradient(to right, #fa709a 0%, #fee140 100%)"
    $ pwa-asset-generator https://elegantapp.github.io/pwa-asset-generator/static/blm.png ./blm -p "15%" -b "linear-gradient(to right top, #d16ba5, #c777b9, #ba83ca, #aa8fd8, #9a9ae1, #8aa7ec, #79b3f4, #69bff8, #52cffe, #41dfff, #46eefa, #5ffbf1)"

  Flag examples
    --background "rgba(255, 255, 255, .5)"
    --opaque false
    --padding "10px"
    --scrape false
    --manifest ./src/manifest.json
    --index ./src/index.html
    --path "%PUBLIC_URL%"
    --path-override "./your-custom-image-folder-path"
    --type jpg
    --quality 80
    --splash-only
    --icon-only
    --favicon
    --mstile
    --maskable false
    --landscape-only
    --portrait-only
    --dark-mode
    --single-quotes
    --xhtml
    --log false

Module

pwa-asset-generator is not only a CLI. It's a CLI wrapper around a JavaScript module. It's possible to access the underlying API of the library as it's described in below example;

const pwaAssetGenerator = require('pwa-asset-generator');

// Generate images over a module function call, instead of using CLI commands
(async () => {
  const { savedImages, htmlMeta, manifestJsonContent } = await pwaAssetGenerator.generateImages(
    'https://elegantapp.github.io/pwa-asset-generator/static/logo.png',
    './temp',
    {
      scrape: false,
      background: "linear-gradient(to right, #fa709a 0%, #fee140 100%)",
      splashOnly: true,
      portraitOnly: true,
      log: false
    });
})();

// Access to static data for Apple Device specs that are used for generating launch images
const appleDeviceSpecsForLaunchImages = pwaAssetGenerator.appleDeviceSpecsForLaunchImages;

FAQ

What kind of image input should I use with this library? What are the safe margins for a logo?

Any image format that a Chrome browser can render within an <img> HTML tag, is a compatible image input. It can be an icon, an SVG file, a JPEG or PNG logo, even a WebP image.

pwa-asset-generator uses a Chrome tab as an art board. Your input image is being scaled to fit the viewport of the target device resolution while generating splash screens. Since your input image is being scaled for generating splash screens, it's best advised to use a vector image - like an SVG file as an input.

There's no particular safe margin requirement as 10% padding is added around your image input by default with CSS. That being said, you can customize the padding as it's described in the next answer. The library uses a similar approach while generating icons too, with the same default padding 10% around the image input. See it in action here at this tweet to understand the concept.

How can I make an image smaller or larger relative to the background?

The default value for the padding surrounding the image is 10%. But it's just a css padding value that you can configure and override yourself with -p --padding option.

  1. You can use a more advanced padding value based on your taste and goal;

    Larger logo: --padding "calc(50vh - 20%) calc(50vw - 40%)"

    Smaller logo: --padding "calc(50vh - 5%) calc(50vw - 10%)"

  2. You can create your own html input file which uses css media queries and provides different padding options based on breakpoints: https://material.io/design/layout/responsive-layout-grid.html#breakpoints

How can I generate a PNG image with a transparency?

Although the default background color is transparent, there's another option that you need to use for generating transparent images: opaque.

You need to run your CLI command with --opaque false option in order to get the transparency; pwa-asset-generator logo.svg --opaque false --type png.

This might be confusing for some, but it's necessary to support the use of background values with alpha channels.

How can I generate a transparent favicon, and app icons with opaque background?

Default behaviour of the library is to generate a favicon along with app icons. So, it's not possible to generate one without other.

However, you can use this workaround to work with this edge case:

  • First, generate a favicon with --opaque false --icon-only --favicon --type png options.
  • Then, overwrite app icons with --background "#FFF" --icon-only options.

How can I generate both dark mode and light mode splash screen images?

You need to execute two consequent commands in order to generate both dark mode and light mode splash screens for you PWA running on iOS.

Here's a pair of example commands that can be used for generating both modes;

npx pwa-asset-generator light-logo.svg ./assets --dark-mode --background dimgrey --splash-only --type jpeg --quality 80 --index ./src/app/index.html
npx pwa-asset-generator dark-logo.svg ./assets --background lightgray --splash-only --type jpeg --quality 80 --index ./src/app/index.html

As you can see from the demonstration of dark mode splash screens at this tweet, users have to re-add a PWA to the home screen in order to react to a system setting change.

An existing PWA on a home screen will not be able to recognize changed system settings for it's launch image. This is a limitation on iOS.

Are deprecated device-width and device-height media queries necessary?

Even though they're deprecated, device-width and device-height media queries are still being used by iOS to declare splash screen images for web apps added to a home screen.

When it's an exact match with device's resolution, iOS displays the splash screen as a launch image on bookmarks / PWAs added to a home screen.

How can I use JSX syntax to generate the meta tags?

If you don't have HTML files in your project, and have a JSX/TSX files instead, you can either use --xhtml option or self-generate the meta tags.

The --xhtml option allows you to generate the required meta tags with self-closing them - < />. This will allow copying generated tags directly to a JSX/TSX file.

Alternatively, you can use static data that this library exports to generate the required meta tags! pwa-asset-generator exposes the static Apple device specification data via it's module API. Here's an example JSX snippet;

import { appleDeviceSpecsForLaunchImages } from 'pwa-asset-generator';

render() {
  return (
    <>
      {appleDeviceSpecsForLaunchImages.map((spec) => {
        return (
          <>
            <link
              key={`apple-splash-${spec.portrait.width}-${spec.portrait.height}`}
              rel="apple-touch-startup-image"
              href={`apple-splash-${spec.portrait.width}-${spec.portrait.height}.png`}
              media={`(device-width: ${spec.portrait.width /
                spec.scaleFactor}px) and (device-height: ${spec.portrait
                .height /
                spec.scaleFactor}px) and (-webkit-device-pixel-ratio: ${
                spec.scaleFactor
              }) and (orientation: portrait)`}
            />
            <link
              key={`apple-splash-${spec.portrait.width}-${spec.portrait.height}`}
              rel="apple-touch-startup-image"
              href={`apple-splash-${spec.portrait.width}-${spec.portrait.height}.png`}
              media={`(device-width: ${spec.portrait.height /
                spec.scaleFactor}px) and (device-height: ${spec.portrait
                .width /
                spec.scaleFactor}px) and (-webkit-device-pixel-ratio: ${
                spec.scaleFactor
              }) and (orientation: landscape)`}
            />
          </>
        );
      })}
    </>
  );
}

My index.html file's format has been changed after an automated update. Is there any way to re-format it?

pwa-asset-generator uses pretty for formatting your index.html file with a simple, opinionated output.

A recommended way to maintain the same format for your index.html file would be using Prettier and adding the following script to your project's package.json file.

"format:index": "prettier \"index.html\" --write"

Executing npm run format:index after using pwa-asset-generator assures the same format for your HTML file.

When generating PNG images, there's no compression settings. Is there a way to introduce compression for PNG files?

pwa-asset-generator depends on Puppeteer, and it's screenshot API for image generation. Puppeteer doesn't provide compression settings for PNG files for the time being.

However, you can use one of the lossless / lossy compression libraries - like pngquant to compress the generated PNG images.

Running the CLI command on CI server causes Puppeteer error: "Running as root without --no-sandbox is not supported". How can I disable sandboxing?

In case of getting "No usable sandbox!" error on Linux, you need to enable system sandboxing.

PAG provides users the --no-sandbox option to tackle this issue. Note that there are limitations for this option; it can only be used on Linux platforms and HTML inputs are disabled for security purposes.

You saved me hours of work with pwa-asset-generator. How can I support this project?

We're glad you enjoy PWA Asset Generator, and it saved you your precious time. Become one of the backers and help us maintain this project!

changelog

Changelog

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

8.0.5 (2025-05-19)

8.0.4 (2025-04-04)

8.0.3 (2025-04-03)

8.0.2 (2025-03-27)

8.0.1 (2025-03-27)

Bug Fixes

  • core: pptr screenshot window activation issue (f453d97)

8.0.0 (2025-03-24)

Features

  • core: migrate project to esm and modernize deps (0c2edb0)

BREAKING CHANGES

  • core: esm migration is a breaking change for module use of the lib.

7.0.0 (2025-03-21)

Bug Fixes

  • ci: update broken actions (785ba94)
  • ci: update more broken actions (ae6dde1)
  • ci: update node versions (4a6d092)
  • ci: update release workflow (53af39d)
  • ci: use no-sandbox the sanity check (a213839)
  • deps: update to non-vulnerable versions (e3363a5)

Features

  • core: update min node requirement (389c35f)

BREAKING CHANGES

  • core: Min node requirement is updated according to puppeteer requirements.

6.4.0 (2024-10-26)

Bug Fixes

  • config: update Apple HIG splash screen specs URL (6e8e9c9)

Features

6.3.2 (2024-08-23)

Bug Fixes

6.3.1 (2023-05-18)

Bug Fixes

  • core: remove extra margin in viewport (f78baf8)

6.3.0 (2023-05-10)

Bug Fixes

  • puppets: update apple specs selector (8f00387)

Features

  • main: update fallback data (8fddb3f)

6.2.1 (2023-01-13)

6.2.0 (2022-10-02)

Features

  • main: add iphone 14 specs (e2b6eb5)

6.1.3 (2022-08-29)

6.1.2 (2022-08-29)

6.1.1 (2022-07-05)

Bug Fixes

  • deps: upgrade dependencies (a848254)

6.1.0 (2022-06-08)

Bug Fixes

  • puppets: update scraper for apple specs site (bc90c4c)

Features

  • main: add iphone 13 specs (7e09df1)

6.0.8 (2022-04-03)

6.0.7 (2022-04-03)

Bug Fixes

  • deps: upgrade dependencies (abd16a5)

6.0.6 (2022-01-20)

6.0.5 (2021-12-02)

Bug Fixes

  • main: allow path override of empty string (351c8f7)

6.0.4 (2021-11-29)

Bug Fixes

  • core: revert puppeteer upgrade (04d5c00), closes #764

6.0.3 (2021-11-29)

6.0.2 (2021-11-19)

6.0.1 (2021-11-10)

6.0.0 (2021-11-07)

Bug Fixes

  • main: add both 'any' and 'maskable' icons to manifest by default (d7b488d), closes #725
  • main: fix wrong icons file name when 'pathOverride' option is used (25cef00), closes #723

BREAKING CHANGES

  • main: In addition to 2 icons with maskable purpose in the manifest file, 2 more icon entries of the same icons with any purpose is added to the manifest output.

5.0.1 (2021-11-04)

5.0.0 (2021-10-07)

Bug Fixes

  • main: prevent unnecessary newlines on index HTML file (a40d016), closes #434
  • meta: fix wrong file types of icons' html (a6d2c58), closes #495

Features

  • file: add maskable keyword to the manifest icons' file name (47a09c6), closes #679
  • main: use either 'maskable' or 'any' as a purpose (4bdce80), closes #679

BREAKING CHANGES

  • file: The file name template of the manifest icons is updated.
  • main: The newlines created when re-saving meta tag changes on the same index HTML file will be removed. The prettier step to re-format after library execution is now optional and nice to have.
  • main: Instead of setting 'maskable any' as a purpose, the library will be setting 'maskable' value only when provided the maskable option.

4.3.9 (2021-09-22)

4.3.8 (2021-09-21)

4.3.7 (2021-09-21)

4.3.6 (2021-08-11)

4.3.5 (2021-08-05)

4.3.4 (2021-08-02)

4.3.3 (2021-07-28)

4.3.2 (2021-07-28)

4.3.1 (2021-07-16)

4.3.0 (2021-07-13)

Features

  • main: add "--disable-dev-shm-usage" as a default chrome launch arg (a444f76), closes #517

4.2.1 (2021-07-13)

Bug Fixes

  • main: revert --disable-dev-shm-usage chrome launch arg (83a80e8), closes #631

4.2.0 (2021-07-13)

Features

  • main: add puppeteer's "--disable-dev-shm-usage" arg as a default one (bc655fd), closes #517

4.1.1 (2021-01-13)

Bug Fixes

  • cli: do not throw when args are missing (53608e7), closes #499

4.1.0 (2020-12-29)

Features

4.0.2 (2020-12-15)

Bug Fixes

  • main: force enable sRGB color profile (15eef1b), closes #325

4.0.1 (2020-12-05)

Bug Fixes

  • main: fix misleading description of mstiles flag (f0f2478), closes #469

4.0.0 (2020-11-30)

Bug Fixes

  • main: add --no-sandbox option to optionally disable sandboxing on linux (79444d2)

Features

  • main: add iPhone 12 specs to fallback data (e1f8a27), closes #454
  • main: add optional windows mstile icon generation (91ae0a9), closes #309 #389
  • main: reduce apple icons to a single file size (c8f1321), closes #433

BREAKING CHANGES

  • main: Generated Apple touch icons is reduced to one icon. The icon file type is set to PNG as default type, rather than a JPEG type.

3.2.3 (2020-10-23)

Bug Fixes

  • puppets: fix wrong splash screen resolution for Apple iPhone Plus devices (7e59b40), closes #391
  • puppets: use emulate instead of setViewport to preserve pixel sizes (e0a0028)

3.2.2 (2020-09-17)

Bug Fixes

  • main: update dimension regex to match new apple hig data (4303843), closes #405

3.2.1 (2020-08-31)

Bug Fixes

  • main: fix xhtml option having no effect on module usage (4dfa9c4), closes #351

3.2.0 (2020-08-30)

Features

  • main: enable parallel execution (98f0464), closes #357

3.1.3 (2020-07-30)

Bug Fixes

  • main: constraint default type to png for manifest icons (bf6f87c), closes #337

3.1.2 (2020-07-30)

Bug Fixes

  • puppets: updated scraper for latest specs and improve fallback handling (6506952), closes #355

3.1.1 (2020-06-03)

Bug Fixes

  • docs: fix BLM example image URL (2cb0e76), closes #303

3.1.0 (2020-06-03)

Features

  • cli: display help when no arg is provided (0641bd9), closes #302
  • main: add BLM branding #blacklifematters (d572c5d), closes #301

3.0.0 (2020-05-15)

Bug Fixes

  • cli: fixed conflicting -h option (3d4f04c), closes #263

Features

  • main: added dark mode media query support for html inputs (c5d2e0d), closes #227
  • main: added stricter chrome launch args set (bdfbef4), closes #229
  • main: exported appleDeviceSpecsForLaunchImages from module API (dac56d4), closes #248
  • main: switched to JPG as default output type (bb5cfec), closes #278
  • meta: added xhtml option to introduce self-closing meta tags (0dea81a), closes #192
  • node: drop node 8 support due to its EOL (030569b), closes #231

BREAKING CHANGES

  • main: Due to the large carbon footprint that PNG assets create, switched over using JPG output with compression by default.
  • cli: -h path override usage is dropped. It's replaced with -v shorthand.
  • node: Users with node v8 will not be actively supported.

2.3.0 (2020-03-08)

Features

  • main: added maskable purpose as default declaration in manifest (006d73c), closes #38
  • main: added maskable purpose as default declaration in manifest (84dcc67), closes #38
  • main: added pathOverride option to allow path optimisation on href (7ff2e07), closes #148
  • main: added pathOverride option to allow path optimisation on href (2d89cba), closes #148

2.2.2 (2020-02-24)

Bug Fixes

  • puppets: fixed failing scrape of Apple splash screen specs (cff635b), closes #168

2.2.1 (2020-01-21)

Bug Fixes

  • puppets: added wait until networkidle opt for remote html input (9aa86eb), closes #125

2.2.0 (2020-01-16)

Features

  • main: added jpg extension as an output type (e1f2221), closes #116

2.1.3 (2019-12-19)

Bug Fixes

  • file: fixed an issue while creating a non-existent output dir (b691b6f), closes #77

2.1.2 (2019-11-08)

Bug Fixes

  • cli: updated docs to clarify transparency option (a4bcaff), closes #68

2.1.1 (2019-11-01)

Bug Fixes

  • puppets: added error handling for failing chrome kill attempt (6cc65fd), closes #65

2.1.0 (2019-11-01)

Bug Fixes

  • browser: added a method to kill premature chrome instances (ad69854), closes #58
  • file: replaced backslash in path output of generate images API res (6563977), closes #64

Features

  • main: upgraded to pptr v2 and optimized chrome launcher (a14e8e6), closes #62 #58

2.0.2 (2019-10-30)

Bug Fixes

  • meta: added disable decoding entities option to cheerio (1e984eb), closes #60

2.0.1 (2019-10-27)

Bug Fixes

  • browser: avoid SPOF for chrome launcher (f5ca991), closes #56

2.0.0 (2019-10-25)

Bug Fixes

  • browser: added error handling for chrome-launcher (c6ed23a), closes #50
  • package: suppressed security warning by changing pkg v strategy (9987e39), closes #53

Features

  • file: avoided saving a shell html file (b96d545), closes #52
  • icon: added optional favicon generation (699686a), closes #47
  • main: added dark mode support for iOS (f4aca1c), closes #51
  • pptr: switched over puppeteer-core to avoid chromium install (05edb2e), closes #50
  • pwa: added single quotes option for generated HTML tags (351a3cc), closes #49

BREAKING CHANGES

  • main: generateImages method from the module API now returns HTMLMeta object with the chunks of HTML content, instead of one big HTML string

1.3.1 (2019-09-26)

Bug Fixes

  • file: fixed relative path to input file that is not resolving (19cc7c4), closes #45

1.3.0 (2019-09-25)

Features

  • core: migrated to TypeScript and reduced node dep to 6.4.0 (cfc1657), closes #6

1.2.0 (2019-09-12)

Features

  • main: added option to provide path prefix to generated href links (268c671), closes #31
  • main: added option to provide path prefix to generated href links (1e18466), closes #31
  • main: exposed private API via main.js (afce4af), closes #5
  • main: exposed private API via main.js (d3367ad), closes #5
  • main: refactored main and added index.d.ts (72a7fe4), closes #5
  • main: refactored main and added index.d.ts (1ab1c3e), closes #5

1.1.7 (2019-08-30)

Bug Fixes

  • file.js, pwa.js, package.json: fix Windows backslash paths being added to icon and html content (24fef99), closes #36

1.1.6 (2019-08-29)

Bug Fixes

  • cli: add icon code output for ios icons (c768fb6), closes #26
  • puppets: increased timeout for generating images (3191560), closes #28

1.1.5 (2019-08-22)

Bug Fixes

  • cli: calculated relative path of generated content to the reference output file (b76e9d2), closes #21
  • cli: use relative path when output is not provided (ec991ec), closes #20

1.1.4 (2019-08-19)

Bug Fixes

  • cli: fixed wrong url on help text (6cc6e22), closes #11
  • fixed iPad 12.9" specs being stripped out and added orientation key to the media queries (59a891a), closes #18
  • puppets: fixed the check where scraping result is evaluated (b584be0)

1.1.3 (2019-08-18)

Bug Fixes

  • cli: fixed wrong url on help text (03775bf), closes #11

1.1.2 (2019-08-16)

Bug Fixes

  • readme: fixed wrong link on examples (35152f3)

1.1.1 (2019-08-16)

Bug Fixes

  • readme: fixed broken link on readme (5d6e0b4)

1.1.0 (2019-08-15)

Features

  • cli: added --portrait-only and --landscape-only flags (1fb1ecb), closes #4
  • cli: added --splash-only and --icon-only flags (20f39e0), closes #3
  • cli: added --type and --quality flags (c0c1565), closes #2
  • cli: create output folder if it doesn't exist (4eebf34), closes #9

1.0.2 (2019-08-14)

Bug Fixes

  • npm: ignored static files to keep the tarball clean (6de2a39)

1.0.1 (2019-08-14)

Bug Fixes

  • cli: fixed the issue when output is not provided (b7102e7), closes #1