ilya premium asked 3 years ago


Hi, the mdb5 pro package has in its minified js version already 1.1M + ~0.6M in CSS.

Is there a way to treeshake it / to compile using only the components that we really use?

Thanks a lot Ilya


Grzegorz Bujański staff answered 3 years ago


You can import components from the src folder. But you have to remember that it can cause errors. For example, dropdown requires Popper to work properly. If you choose this solution, you need to install this type of libraries.



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Premium
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: 3.2.0
  • Device: Any
  • Browser: Any
  • OS: Any
  • Provided sample code: Yes
  • Provided link: No