Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
joewang committed Sep 19, 2024
1 parent 5368ceb commit ff098af
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/lend/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ const nextConfiguration = {
trailingSlash: true,
transpilePackages: ['onboard-helpers', 'ui'],
webpack(config) {
config.optimization = {
...config.optimization,
innerGraph:false ,
//minimize: false, // 禁用压缩
};
config.module.rules.push({
test: /\.svg$/,
use: ['@svgr/webpack', 'url-loader']
Expand Down
7 changes: 7 additions & 0 deletions apps/loan/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ const nextConfiguration = {
trailingSlash: true,
transpilePackages: ['onboard-helpers', 'ui'],
webpack(config) {

config.optimization = {
...config.optimization,
innerGraph:false ,
//minimize: false, // 禁用压缩
};

config.module.rules.push({
test: /\.svg$/,
use: ['@svgr/webpack', 'url-loader']
Expand Down
9 changes: 9 additions & 0 deletions apps/main/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ const nextConfiguration = {
compiler: {
styledComponents: true
},
//swcMinify:false,
experimental: {
//serverComponentsExternalPackages: ['@web3-onboard/uxuy', ],
swcPlugins: [
['@lingui/swc-plugin', {
// Optional
Expand All @@ -29,6 +31,13 @@ const nextConfiguration = {
trailingSlash: true,
transpilePackages: ['onboard-helpers', 'ui'],
webpack(config) {

config.optimization = {
...config.optimization,
innerGraph:false ,
//minimize: false, // 禁用压缩
};

config.module.rules.push({
test: /\.svg$/,
use: ['@svgr/webpack', 'url-loader']
Expand Down

0 comments on commit ff098af

Please sign in to comment.