I'm sticking to the code structure generated by Yeoman for an Angular fullstack application.
The issue I'm facing is how to include a script called core.js
in a file named app.html
.
<script src="core.js"></script>
- I can't find any reference to express.static for serving static files in this setup.
- I tried using it, but it didn't work as expected.
No matter what I do, the script cannot be located and results in a 404 error.
How can I resolve this issue?
In the past, I was able to solve a similar problem by using express.static to serve files from a specific location. However, this approach is not working this time around.
Update:
I have the app.html file in a folder named Music. Within the same folder, there's a subfolder named js where I've placed my core.js file that needs to be included in app.html. I've tried accessing it using both absolute and relative paths, but I still get a 404 error.