0👍
Instead of writing static in the index.html files path, use <%= BASE_URL %>.
For example instead of adding all css and script files with href="/static/vendor/modernizr/modernizr.min.js"
, write like this href="<%= BASE_URL %>/vendor/modernizr/modernizr.min.js"
Source:stackexchange.com