Currently in the process of migrating a project to Angular 6, I'm facing an issue with importing my CSS file within the styles section of angular.json:
"styles": [
"./src/styles.css",
"./node_modules/primeng/resources/primeng.min.css",
"./node_modules/primeicons/primeicons.css",
"./node_modules/bootstrap/dist/css/bootstrap.min.css"
],
"scripts": [
"./node_modules/jquery/dist/jquery.min.js",
"./node_modules/popper.js/dist/umd/popper.min.js",
"./node_modules/bootstrap/dist/js/bootstrap.min.js"
]
Despite correctly importing the CSS files, classes are not being applied except for those in style.css. Interestingly, the JavaScript imported in the scripts section works as expected.
Any suggestions on why this might be happening? Thank you.
The current folder structure is as follows:
app --
|-- node_modules
|-- src
|.. styles.css
|-- angular.json