Using grunt server, how can I redirect all requests to root url?
First, using your command line, navigate to your directory with your gruntfile. Type this in the CLI: npm install –save-dev connect-modrewrite At the top of your grunt file put this: var modRewrite = require(‘connect-modrewrite’); Now the next part, you only want to add modRewrite into your connect: modRewrite([‘!\\.html|\\.js|\\.svg|\\.css|\\.png$ /index.html [L]’]), Here is a example of … Read more