Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

create-vite-pwa

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-vite-pwa

> **Compatibility Note**: Vite, and this module, require [Node.js](https://nodejs.org/en/) version >=12.0.0.

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Create Vite PWA

Compatibility Note: Vite, and this module, require Node.js version >=12.0.0.

This is an enhancement to the create Vite package (npm init vite@latest) that enhances any of the available Vite starters to make them work as a PWA through Vite Plugin PWA and Workbox. Out of the box, you get the following:

  • The Vite starter of your choice
  • Vite Plugin PWA configured with a basic Web App Manifest
  • Service Worker registration through Vite Plugin PWA
  • Sample icons to use
  • A Service Worker with a basic offline fallback provided by Workbox Recipes

Usage

Run npm init vite-pwa [PROJECT-DIR].

You can pass the following flags in to set options instead of going through the prompts:

FlagDescription
-f FRAMEWORKFramework to use
{--ts | --js}Whether to use TypeScript or JavaScript
--overwriteIf a project directory is included, overwrite its content if it's not empty

FAQs

Package last updated on 01 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc