angular.json bootstrap path
To specify the Bootstrap path in the angular.json
file, you can follow these steps:
- Open the
angular.json
file in your project. - Locate the
"styles"
array within the"build"
and"test"
configurations. - Add the path to the Bootstrap CSS file within the
"styles"
array. The path should be relative to theangular.json
file. - Save the
angular.json
file.
Here's an example of how the "styles"
array might look after adding the Bootstrap path:
"build": {
"options": {
"styles": [
"src/styles.css",
"node_modules/bootstrap/dist/css/bootstrap.min.css"
]
}
},
"test": {
"options": {
"styles": [
"src/styles.css",
"node_modules/bootstrap/dist/css/bootstrap.min.css"
]
}
}
Please note that the path to the Bootstrap CSS file may vary depending on your project's file structure and the version of Bootstrap you are using. Make sure to adjust the path accordingly.