@ranger-theme/pwa-config

0.3.0ย โ€ขย Publicย โ€ขย Published

@ranger-theme/pwa-config

๐ŸŽ‰ Introduce

pwa้…็ฝฎ

๐Ÿ“š Documentation

๐Ÿ“ฆ Install

$ npm install --save-dev @ranger-theme/pwa-config
# or
$ yarn add --save-dev @ranger-theme/pwa-config
# or
$ pnpm add --save-dev @ranger-theme/pwa-config

๐Ÿ”จ Usage

const nextConfig = require('@ranger-theme/nextjs-config')
const pwaConfig = require('@ranger-theme/pwa-config')

const pkg = require('./package.json')

const isProd = process.env.NODE_ENV === 'production'
const timestamp = new Date().getTime()

/** @type {import('next').NextConfig} */
module.exports = nextConfig({
  pkg,
  dirname: process.cwd(),
  timestamp,
  transpilePackages: [],
  compiler: {
    reactRemoveProperties: isProd,
    removeConsole: false
  },
  plugins: [...pwaConfig({ timestamp })]
})

Readme

Keywords

none

Package Sidebar

Install

npm i @ranger-theme/pwa-config

Weekly Downloads

15

Version

0.3.0

License

MIT

Unpacked Size

28.1 kB

Total Files

11

Last publish

Collaborators

  • jdream