compiled/minified jsx file is bigger than original file

后端 未结 1 738
执笔经年
执笔经年 2021-01-20 06:52

The original jsx file size is 189k after removing all spaces. The compiled/minified file size js is 217k without any dependencies. I have used all webpack/babel optimization

相关标签:
1条回答
  • 2021-01-20 07:41

    There are a number of settings you can use in Webpack to get your output size smaller. Looks like you probably have that under control.

    However, bundle size will be influenced by how you write your ES6 code and JSX. I compiled a list of tips and tricks for writing more minifiable ES6 code that range from careful selection of ES6 features to optimal JSX structures. I hope that helps

    0 讨论(0)
提交回复
热议问题