Topic: Webpack import individual modules

demzl25 pro 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 pro 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: Pro
  • Premium support: No
  • Technology: MDB Standard
  • MDB Version: MDB5 3.10.2
  • Device: Pc
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No