AlexWang-16 / react-lex-plus

5 stars 5 forks source link

Reduce file size upon build. #16

Closed mikeyqq closed 3 years ago

mikeyqq commented 3 years ago

The file currently sits on 2.64mb of bundling and build. Will need to address this to optimize file.

AlexWang-16 commented 3 years ago

Investigated into style-loader and css-loader. Both are necessary to support loading CSS files in the application and cannot be removed. The bundle size is now at 1MB and is as small as possible given what I know. When compiling with npm run build, it no longer complains about bundle size.