What are the advantages of importing bootstrap.scss into the styles.scss file compared to adding it to the .angular-cli.json styles block?
Which approach is better and why?
styles.scss
@import '~bootstrap/scss/bootstrap.scss';
vs
.angular-cli.json
"testTsconfig": "tsconfig.spec.json",
"prefix": "app",
"styles": [
"../node_modules/bootstrap/dist/css/bootstrap.min.css",
I am curious to know if there are benefits in terms of build size when only the necessary styles for a page are loaded, potentially reducing bundle size.