Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

chore(deps): upgrade main pkgs 2022 9#1368

Merged
mydearxym merged 2 commits intodevfromdeps-upgrade-2022-9
Sep 8, 2022
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 14 additions & 19 deletionsnext.config.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
// const webpack = require('webpack')

// next-plugins
const withPlugins = require('next-compose-plugins')
const withSourceMaps = require('@zeit/next-source-maps')()
const withPWA = require('next-pwa')
// const withPlugins = require('next-compose-plugins')
// const withPWA = require('next-pwa')

const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true',
Expand All@@ -12,23 +11,19 @@ const withBundleAnalyzer = require('@next/bundle-analyzer')({
// next-plugins end

// if move pwa config to witPlugins, it will not work
const nextConfig = withPWA({
swcMinify: false,
productionBrowserSourceMaps: false,
pwa: {
dest: 'public',
disable: process.env.NODE_ENV !== 'production',
register: true,
// scope: '/cp',
sw: 'sw.js',
},
compiler: {
// ssr and displayName are configured by default
styledComponents: true,
},
const nextConfig = {
swcMinify: true,
productionBrowserSourceMaps: true,
// pwa: {
// dest: 'public',
// disable: process.env.NODE_ENV !== 'production',
// register: true,
// // scope: '/cp',
// sw: 'sw.js',
// },
// experimental: {
// outputStandalone: true,
// },
})
}

module.exports =withPlugins([withBundleAnalyzer, withSourceMaps],nextConfig)
module.exports = withBundleAnalyzer(nextConfig)
Loading

[8]ページ先頭

©2009-2025 Movatter.jp