0👍
Add multiple files in entry object in webpack.config.js
entryPoint = {
app: ['path/to/vue.js', 'path/to/vue-router.js','./index.js'],
};
This will make sure that you have both vue and vue-router loaded when you have run index.js (entry point of project).
More on Webpack entry points.
- [Vuejs]-Vue+Firebase Conditional Rendering
- [Vuejs]-Access store inside component method : Cannot read property '$store' of undefined
Source:stackexchange.com