Complete the code to specify the Bootstrap version in the package.json file.
{
"dependencies": {
"bootstrap": "[1]"
}
}The correct Bootstrap version to use is 5.3.0, which is the latest stable release.
Complete the code to import Bootstrap's SCSS file in your main stylesheet.
@import '[1]';
To customize Bootstrap styles, you import the SCSS source file located at 'bootstrap/scss/bootstrap'.
Fix the error in the npm script to build Bootstrap SCSS using sass.
"build-css": "sass [1] styles.css"
The main SCSS file is usually named 'styles.scss' in the project root or source folder.
Fill both blanks to configure PostCSS plugins for autoprefixing and minification.
module.exports = {
plugins: [
require('[1]'),
require('[2]')
]
};Autoprefixer adds vendor prefixes, and cssnano minifies CSS for production.
Fill all three blanks to create a Webpack rule for processing SCSS files.
module.exports = {
module: {
rules: [
{
test: /\.scss$/,
use: [
'[1]',
'[2]',
'[3]'
]
}
]
}
};Webpack uses 'style-loader' to inject styles, 'css-loader' to interpret CSS, and 'sass-loader' to compile SCSS.
