I can't get the webpack_public_path to work with my vue application. i get this error:
Module Error (from ./node_modules/eslint-loader/index.js):
error: '__webpack_public_path__' is not defined (no-undef) at src\publicpath.js:1:1:
> 1 | __webpack_public_path__ = process.env.VUE_APP_CHAT_URL;
| ^
2 |
heres how i have it implemented:
//publicpath.js
__webpack_public_path__ = process.env.VUE_APP_CHAT_URL;
and
//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 => h(App),
store
}).$mount('#tn-chat')
Is there something crucial i have left out?