title: "npm run dev" creates 0.js, 1.js, ... 14.js files in my public folder
body: <p>I'm a beginner using Webpack, NPM and VueJS.</p>
  <p>I dont know what I did and I can't find any solution on internet.</p>
  <p>When I run the command <code>npm run dev</code> in VueJS, webpack creates 15 files numbered from 0.js to 14.js</p>
  <p>The files first lines are :</p>
  <pre><code>(window[&quot;webpackJsonp&quot;] = window[&quot;webpackJsonp&quot;] || []).push([[0],{
  </code></pre>
  <p>Where 0 in the file name</p>
  <p>Anyone knows what I broke in my app ?</p>
  <p>EDIT:</p>
  <p>I figured out that every file is related to One component.
  And I guess that this is in relation with my router file :</p>
  <pre><code>import Vue from 'vue';
  import Router from 'vue-router';
  
  Vue.use(Router);
  
  function loadView(view) {
      return () =&gt; import(`../components/${view}.vue`);
  }
  
  function loadLayout(view) {
      return () =&gt; import(`../components/_layouts/${view}.vue`);
  }
  
  const routes = [
      // USER ROUTES
      {
          path: '/dashboard',
          component: loadView('user/Dashboard'),
          meta: {
              layout: loadLayout('user/Layout'),
              auth: &quot;user&quot;
          },
          name: 'user'
      },
      // SUPPLIER ROUTES
      {
          path: '/supplier',
          component: loadView('supplier/Dashboard'),
          meta: {
              layout: loadLayout('supplier/Layout'),
              auth: &quot;supplier&quot;
          },
          name: 'supplier'
      },
      // ADMIN ROUTES
      {
          path: '/admin',
          component: loadView('admin/Dashboard'),
          meta: {
              layout: loadLayout('admin/Layout'),
              auth: &quot;admin&quot;
          },
          name: 'admin'
      },
      // DEFAULT ROUTES
      {
          path: '/register',
          component: loadView('auth/Register'),
          meta: {
              layout: loadLayout('home/Layout'),
              auth: false
          },
          name: 'register'
      },
      {
          path: '/login',
          name: 'login',
          component: loadView('auth/Login'),
          meta: {
              layout: loadLayout('home/Layout'),
              auth: false
          }
      },
      {
          path: '/',
          component: loadView('home/Home'),
          meta: {
              layout: loadLayout('home/Layout'),
              auth: undefined
          },
          name: 'home'
      },
      // otherwise redirect to home
      {
          path: '*',
          redirect: '/'
      }
  
  ];
  
  Vue.router = new Router({
      hashbang: false,
      mode: 'history',
      routes
  });
  
  export default Vue.router;
  
  </code></pre>