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.

Commit8107442

Browse files
authored
chore(deps): upgrade main pkgs 2022 9 (#1368)
* chore: update deps & fix build error* chore: clean up warnings
1 parentc448dcc commit8107442

File tree

7 files changed

+844
-700
lines changed

7 files changed

+844
-700
lines changed

‎next.config.js‎

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
// const webpack = require('webpack')
22

33
// next-plugins
4-
constwithPlugins=require('next-compose-plugins')
5-
constwithSourceMaps=require('@zeit/next-source-maps')()
6-
constwithPWA=require('next-pwa')
4+
// const withPlugins = require('next-compose-plugins')
5+
// const withPWA = require('next-pwa')
76

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

1413
// if move pwa config to witPlugins, it will not work
15-
constnextConfig=withPWA({
16-
swcMinify:false,
17-
productionBrowserSourceMaps:false,
18-
pwa:{
19-
dest:'public',
20-
disable:process.env.NODE_ENV!=='production',
21-
register:true,
22-
// scope: '/cp',
23-
sw:'sw.js',
24-
},
25-
compiler:{
26-
// ssr and displayName are configured by default
27-
styledComponents:true,
28-
},
14+
constnextConfig={
15+
swcMinify:true,
16+
productionBrowserSourceMaps:true,
17+
// pwa: {
18+
// dest: 'public',
19+
// disable: process.env.NODE_ENV !== 'production',
20+
// register: true,
21+
// // scope: '/cp',
22+
// sw: 'sw.js',
23+
// },
2924
// experimental: {
3025
// outputStandalone: true,
3126
// },
32-
})
27+
}
3328

34-
module.exports=withPlugins([withBundleAnalyzer,withSourceMaps],nextConfig)
29+
module.exports=withBundleAnalyzer(nextConfig)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp