Error getting 404 when including scripts and styles node_module in index.html inside src
Below is a code snippet for referencing scripts and a screenshot of the error, including scripts and styles.
<script src="../node_modules/angular/angular.min.js"></script>
<script src="../node_modules/jquery/dist/jquery.min.js"></script>
Also below is the folder structure of the mentioned code snippet
Package.json
{
"name": "dynamic-location",
"version": "1.0.0",
"description": "An angular directive for listing of the objects and tracking their events in map",
"main": "index.html",
"scripts": {
"test": "echo \\\"Error: no test specified\\\" && exit 1"
},
"keywords": [
"angular",
"dynamic",
"objects",
"event",
"tracking",
"map"
],
"author": "Subba",
"license": "UNLICENSED",
"dependencies": {
"angular": "1.5.0",
"bootstrap": "^3.3.7",
"grunt-contrib-jshint": "^1.1.0",
"grunt-contrib-watch": "^1.0.0",
"leaflet": "^1.0.3",
"wiredep": "^4.0.0"
},
"devDependencies": {
"grunt": "^1.0.1",
"grunt-autoprefixer": "^3.0.4",
"grunt-concurrent": "^2.3.1",
"grunt-contrib-clean": "^1.0.0",
"grunt-contrib-connect": "^1.0.2",
"grunt-serve": "^0.1.6",
"grunt-wiredep": "^3.0.1"
}
}
+3
source to share
No one has answered this question yet
Check out similar questions: