1

I have added bootstrap dependencies in index.html file. this index file is in src folder. and node modules is in above it. Folder structure is given below.

Library
  node_modules
  src
    index.html

Now I am targeting to node_modules from index.html. My code is given below.

   <link rel="stylesheet" href="../node_modules/bootstrap/dist/css/bootstrap.min.css">
   <script src="../node_modules/jquery/dist/jquery.min.js"></script>

And also tried with ./ and just starts from node_modules. What is the problem here.

raj m
  • 1,863
  • 6
  • 21
  • 37

1 Answers1

3
  • Please check whether the file is available in under node_modules
    • import that CSS inside styles.css file, that will be compiled automatically

Hope you are using angular-cli package

@import '~bootstrap/dist/css/bootstrap.min.css';
Jin Krish
  • 41
  • 7