A
A
Abc Edc2015-05-03 21:20:42
Angular
Abc Edc, 2015-05-03 21:20:42

How to include script/css in index on node?

I am using Angular. I include files as if they came from an index that is in a separate folder

<script src="lib/angular.min.js"></script>
    <script src="lib/angular-ui-router.js"></script>
    <script src="app/app.js"></script>
    <link rel="stylesheet" href="lib/bootstrap.css">
   
    <script src="//cdnjs.cloudflare.com/ajax/libs/less.js/2.5.0/less.min.js"></script>

but everything looks like this, 134ef86e86e441d1a7cfab8b49e5953f.png
to which the console answers me with an error saying nothing was found there
GET /app/lib/angular.min.js etc

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2015-05-03
@gleber1

Everything that relates to the frontend - copy / collect to the public directory
and tell the node to distribute
index.html statics and push it there

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question