Skip to content

Bundling Bootstrap

Pre-release
Pre-release

Choose a tag to compare

@Olliebrown Olliebrown released this 07 Mar 15:41

These latest changes go BEYOND what we did in class to add the following:

  • Bootstrap is now bundled as an internal dependency
    • The bootstrap package was installed with npm
    • Bootstrap's CSS file is included inside index.js (now called movieBrowser.js in the client folder)
    • The bootstrap modal is imported just like all other modular files
    • The bootstrap CSS link is replaced with the CSS file generated by esbuild when it bundles
    • The bootstrap JS script tag is removed (it can now be found inside our own bundled JS)
  • The JSON movie data was updated to include movies from 2023 and 2024

I meant to cover these things in class on Wednesday but ran out of time. I will cover them when we get back from spring break but feel free to examine them now!