Topic: How to produce minified JS I actually use

Kean free asked 2 years ago


I just purchased MDB Pro and I am wanting to trim it down as there are a lot of components I do not want to use. I cloned the repo from GitLab and edited src/js/mdb.pro.js to include only the stuff I want, and edited the stuff in src/scss/mdb.{free,pro}.scss.

I consider it a grievous bug that nowhere in the repo are there any instructions on how to reproduce things like mdb.min.css and mdb.min.js.

I used dart-sass to produce the minified, trimmed down CSS I want but I cannot figure how to do the same for the Javascript code. I also don't know if dart-sass is the right tool to use for producing the CSS as the file I get is about half the size of the pre-generated stuff.

Please can you provide me with exact instructions on how to: 1. Edit the MDB / Bootstrap modules I want to support 2. How to produce the minified mdb.min.css 3. How to produce the minified mdb.min.js

Thank you.


Kean free answered 2 years ago


Thank you for the quick response. I will take a look there.


Kamila Pieńkowska staff answered 2 years ago



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: Free
  • Premium support: No
  • Technology: MDB Standard
  • MDB Version: MDB5 4.2.0
  • Device: PC
  • Browser: Edge
  • OS: Linux (Ubunto 20.04 LTS)
  • Provided sample code: No
  • Provided link: No