Skip to content

Commit

Permalink
♻️ refactor: esbuild 도입으로 빌드 성능 개선
Browse files Browse the repository at this point in the history
  • Loading branch information
kihyeoon committed Apr 10, 2023
1 parent 911bc73 commit c89c07b
Show file tree
Hide file tree
Showing 3 changed files with 6,014 additions and 597 deletions.
41 changes: 41 additions & 0 deletions client/craco.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
const CracoEsbuildPlugin = require('craco-esbuild');
const webpack = require('webpack');

module.exports = {
plugins: [
{
plugin: CracoEsbuildPlugin,
options: {
esbuildMinimizerOptions: {
target: 'es2015',
css: true, // OptimizeCssAssetsWebpackPlugin being replaced by esbuild.
},
},
},
],
webpack: {
plugins: {
add: [
new webpack.DefinePlugin({
process: { env: {}, browser: {} },
}),
],
},
configure: {
resolve: {
fallback: {
fs: false,
tls: false,
net: false,
path: false,
zlib: false,
http: false,
https: false,
stream: false,
crypto: false,
buffer: false,
},
},
},
},
};
Loading

0 comments on commit c89c07b

Please sign in to comment.