@ranger-theme/pwa-config
v0.3.0
Published
## ๐ Introduce
Downloads
56
Readme
@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 })]
})