Skip to content

Bootstrap and webpack #41191

Jan 29, 2025 · 1 comments · 8 replies
Discussion options

You must be logged in to vote

Based on your Bootstrap and Webpack Repository:

  • You modified node_modules so you have to rm -rf node_modules first
  • Then you can npm i to install the regular packages
  • In styles.scss you need to @import "bootstrap/scss/bootstrap"; instead of using @use
  • Then, if you run npm run build and render the index.html in your browser, it works well

When you run npm run start the deprecation warnings from Sass can appear in the browser. In that case, you'll need to check how to ignore/silent these warnings via webpack.

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@julien-deramond
Comment options

@RockyMdee32
Comment options

@RockyMdee32
Comment options

@julien-deramond
Comment options

Answer selected by RockyMdee32
@RockyMdee32
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #41190 on January 29, 2025 17:47.