After grunt build
ing my AngularJS app to my dist
directory, I would like to test it out with grunt server
. Problem is that grunt server
just serves up all the code in my app/
directory. Additionally, keep in mind that I created my app with yo angular
.
Here is the server task code in my Gruntfile.js
grunt.registerTask('server', [
'clean:server',
'coffee:dist',
'compass:server',
'livereload-start',
'connect:livereload',
'open',
'watch'
]);
Is there a way to make grunt server
only serve up the built code in my dist/
directory?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…