After setting up npm bootstrap, I decided to import only the necessary classes for my project in custom.scss:
@import '~bootstrap/scss/functions.scss';
@import '~bootstrap/scss/variables.scss';
@import "~bootstrap/scss/mixins";
@import '~bootstrap/scss/transitions.scss';
@import '~bootstrap/scss/nav.scss';
@import '~bootstrap/scss/navbar.scss';
@import '~bootstrap/scss/buttons.scss';
@import '~bootstrap/scss/forms.scss';
@import '~bootstrap/scss/images.scss';
@import '~bootstrap/scss/bootstrap-grid.scss';
@import '~bootstrap/scss/type.scss';
@import '~bootstrap/scss/media.scss';
@import "~bootstrap/scss/dropdown.scss";
@import "~bootstrap/scss/reboot.scss";
@import "~bootstrap/scss/utilities/spacing.scss";
@import "~bootstrap/scss/utilities/text.scss";
@import "~bootstrap/scss/utilities/background.scss";
@import "~bootstrap/scss/utilities/position.scss";
@import "~bootstrap/scss/utilities/sizing.scss";
@import "~bootstrap/scss/utilities/spacing.scss";
@import "~bootstrap/scss/utilities/borders.scss";
@import "~bootstrap/scss/utilities/float.scss";
@import "~bootstrap/scss/mixins/transition.scss";
But now I'm facing an issue where the navbar-collapse isn't working anymore. Can anyone suggest which file might be missing that I need to import? Any help would be greatly appreciated.
Edit: I tried importing all of Bootstrap but still no luck.
@import '~bootstrap/scss/bootstrap.scss';