title: __webpack_public_path__ in vuejs
body: <p>I can't get the <strong>webpack_public_path</strong> to work with my vue application. i get this error:</p>
  
  <pre><code>Module Error (from ./node_modules/eslint-loader/index.js):
  error: '__webpack_public_path__' is not defined (no-undef) at src\publicpath.js:1:1:
  &gt; 1 | __webpack_public_path__ = process.env.VUE_APP_CHAT_URL;
      | ^
    2 |
  </code></pre>
  
  <p>heres how i have it implemented:</p>
  
  <pre><code>//publicpath.js
  __webpack_public_path__ = process.env.VUE_APP_CHAT_URL;
  </code></pre>
  
  <p>and</p>
  
  <pre><code>//main.js
  import './publicpath'
  import Vue from 'vue'
  import App from './App.vue'
  import store from './store/index'
  
  Vue.config.productionTip = false;
  
  new Vue({
    render: h =&gt; h(App),
    store
  }).$mount('#tn-chat')
  </code></pre>
  
  <p>Is there something crucial i have left out?</p>