We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2bc167e commit cf5a431Copy full SHA for cf5a431
1 file changed
next.config.mjs
@@ -5,22 +5,8 @@ const nextConfig = {
5
images: {
6
domains: ['lettering-images.s3.amazonaws.com']
7
},
8
- webpack: (config, { isServer }) => {
9
- if (!isServer) {
10
- config.optimization.minimize = true;
11
- config.module.rules.push({
12
- test: /\.(js|ts|tsx)$/,
13
- exclude: /node_modules/,
14
- use: {
15
- loader: 'babel-loader',
16
- options: {
17
- presets: ['next/babel'],
18
- plugins: [['transform-remove-console']]
19
- }
20
21
- });
22
23
- return config;
+ compiler: {
+ removeConsole: process.env.NODE_ENV === 'production'
24
}
25
};
26
0 commit comments