Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
@vite-pwa/assets-generator
Advanced tools
Zero-config PWA Assets Generator
# npm
npm i @vite-pwa/assets-generator -D
# yarn
yarn add @vite-pwa/assets-generator -D
# pnpm
pnpm add @vite-pwa/assets-generator -D
Create pwa-assets.config.js
or pwa-assets.config.ts
file in your root project folder and configure a preset and the images to use to generate the PWA assets:
import { defineConfig, minimalPreset as preset } from '@vite-pwa/assets-generator/config'
export default defineConfig({
preset,
images: [
'public/logo.svg',
'public-dev/logo.svg'
]
})
then, add the following script to your package.json
and run it:
{
"scripts": {
"generate-pwa-assets": "pwa-assets-generator"
}
}
Read the 📖 documentation for a complete guide on how to configure and use
@vite-pwa/assets-generator
CLI.
To use this library programmatically, check out the API documentation.
Check out the type declaration src/config.ts for more details.
MIT License © 2023-PRESENT Anthony Fu
FAQs
Zero-config PWA Assets Generator
The npm package @vite-pwa/assets-generator receives a total of 24,918 weekly downloads. As such, @vite-pwa/assets-generator popularity was classified as popular.
We found that @vite-pwa/assets-generator demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Security News
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.