I'm facing issues configuring my grunt file to include references (css & js) in my index.html
Below is my project structure:
src/
demo/
index.html
app.js
bower_components/
angular/
angular.js
index.html:
<script src="./bower_components/angular/angular.js"></script>
<script src="../app.js"></script>
gruntFile:
connect: {
demo: {
options: {
port: 9000,
hostname: 'localhost',
open: true,
base: 'src/demo'
},
livereload: {
options: {
middleware: function(connect) {
return [
connect().use(
'/bower_components',
connect.static('./bower_components')
)
];
}
}
}
}
}
For some reason, index.html cannot locate app.js or angular.js.