Angular 6 impossible to import css in styles section of angular.json

I’m migrating a project to Angular 6 and I’m trying to import my css file in styles section on 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"
]

but it doesn’t work. Css are correctly imported but class are not applied, except for class in style.css.
Instead, it correctly work for js imported in scripts section.
Any ideas? Thanks

Source: Angular

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.