Find answers, ask questions, and connect with our
community around the world.

Activity Forums Web Design How should I properly tree shake bootstrap js with webpack?

  • How should I properly tree shake bootstrap js with webpack?

    updated 2 weeks, 6 days ago 0 Member · 1 Post
  • Maverick

    Member
    October 28, 2019 at 8:32 pm

    I am using bootstrap in my website but when I import a bootstrap module with import ‘bootstrap/js/dist/dropdown’ I add about 150 KB to my bundle size which is basically the entire bootsrap js bundle. My webpack.config.js is as follow: https://pastebin.com/aWPdG72n How should I reduce the bundled size? Thanks, ransudz – by hq overview ransudz – –

Reply to: Maverick
Your information:

Cancel
Original Post
0 of 0 posts June 2018
Now