Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: Webpack import individual modules

demzl25 priority asked 2 years ago


Hi,

I need help with with Webpack. I have managed to install and import the entire library into a project files with webpack. But i dont undestand how can import just (css and js) modules of library that I need.

Thanks, Damjan


Michał Duszak staff commented 2 years ago

See the NPM section in our docs about Instalation process https://mdbootstrap.com/docs/standard/getting-started/installation/#section-npm


demzl25 priority commented 2 years ago

Thank you for your help!

I don’t understand exactly the part of documentation how to import just (css and js) modules of library that I need. Gulp in MDB Bootstrap 4 was for me more straightforward.

Its ok if i do this way? I put complete library in src folder and then i remove from src folder the modules of (js and scss) that i don’t need and then run in npm command: npm run build and this will compile only modules of (js an css) library that are remain in src folder. Thanks, Damjan


Michał Duszak staff commented 2 years ago

Yes, it's ok. Remember to include mdb.min.js and mdb.min.css.



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Opened

Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 3.10.2
  • Device: Pc
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No