title: Why does Vue router / Webpack dev server shows Cannot GET /path on page refresh now?
body: <h2>UPDATE:</h2>
  <p>It turns out it was a bug in the Vue webpack template on Windows, it will be fixed soon</p>
  <hr />
  <h2>Question:</h2>
  <p>I've started a new Vue project by installing it with <code>vue init webpack projectName</code> and now I keep getting:  <code>Cannot GET /path</code> (on localhost) when I refresh a page.</p>
  <p>For example, if I go to <code>/contact</code> I'll see the page's content, but as soon as I hit refresh I get <code>Cannot GET /contact</code></p>
  <p>More than that, you cannot simply type the route in the address bar manually now, you get the same error.</p>
  <hr />
  <ul>
  <li>I have <code>mode: 'history'</code></li>
  <li>I see this on localhost (<code>npm run dev</code>)</li>
  </ul>
  <hr />
  <p>It did work properly a few days ago. How do I make it work now?</p>
  <p>All the answers on the internet are not useful (well maybe I didn't applied them properly)</p>
  <hr />
  <h2>index.js</h2>
  <pre><code>import Vue from 'vue'
  import Router from 'vue-router'
  import Vuetify from 'vuetify'
  import 'vuetify/dist/vuetify.min.css'
  import Home from '@/components/Home'
  import Contact from '@/components/Contact'
  
  Vue.use(Router)
  Vue.use(Vuetify)
  
  export default new Router({
    mode: 'history',
    routes: [
      {
        path: '/',
        name: 'Home',
        component: Home
      },
      {
        path: '/contact',
        name: 'Contact',
        component: Contact
      }
    ]
  })
  </code></pre>
  <p>And because of this I cannot make this redirect work now as well:</p>
  <pre><code>{
    path: '*',
    redirect: '/'
  }
  </code></pre>
  <p>I get the same error.</p>
  <p>So I figured it might be the Vue Webpack's template fault, I've noticed that <code>webpack.dev.conf.js</code> is a bit different now and has lines like this now:</p>
  <pre><code>devServer: {
      clientLogLevel: 'warning',
      historyApiFallback: {
        rewrites: [
          { from: /.*/, to: path.join(config.dev.assetsPublicPath, 'index.html') },
        ],
      },
      [...]
  </code></pre>
  <p>Which I would assume has something to do with it.</p>