mirror of https://github.com/fantasticit/think.git
client: remove console when production
This commit is contained in:
parent
359105f474
commit
a26da9c2b9
|
@ -34,7 +34,7 @@ const nextConfig = semi({
|
||||||
ignoreBuildErrors: true,
|
ignoreBuildErrors: true,
|
||||||
},
|
},
|
||||||
compiler: {
|
compiler: {
|
||||||
removeConsole: true,
|
removeConsole: process.env.NODE_ENV === 'production',
|
||||||
},
|
},
|
||||||
pwa: {
|
pwa: {
|
||||||
disable: process.env.NODE_ENV !== 'production',
|
disable: process.env.NODE_ENV !== 'production',
|
||||||
|
|
Loading…
Reference in New Issue