angularjs - Yeoman angular dist version of app, does not restrict the direct folder access -


i facing issue angular app.

dist version of app, not restrict direct folder access.

so www.mysite.com/scripts , /images , /styles folder accessible.

this issue not coming in development i.e. grunt serve coming in grunt serve:dist.

i have tried deny folder using .htaccess of dist folder. doesn't help

.htaccess files specific apache server, running grunt, .htaccess files ignored.

you should not use grunt production server, since designed local development environment only.

take here: can grunt server use production application deployment

files generated grunt (in dist folder) can copied without issues other sever, designed serve files in production (nginx or apache).


Comments