Skip to content

Commit 2bc167e

Browse files
committed
⚙ chore(#142): console.log 블라인드 next.config 파일에서 설정
1 parent 94fdb37 commit 2bc167e

2 files changed

Lines changed: 18 additions & 9 deletions

File tree

.babelrc

Lines changed: 0 additions & 8 deletions
This file was deleted.

next.config.mjs

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,25 @@ const nextConfig = {
33
reactStrictMode: false,
44
swcMinify: true,
55
images: {
6-
domains: ["lettering-images.s3.amazonaws.com"],
6+
domains: ['lettering-images.s3.amazonaws.com']
77
},
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;
24+
}
825
};
926

1027
export default nextConfig;

0 commit comments

Comments
 (0)