When I started using Vue, I found it difficult to integrate Vue with webpack. I also had trouble configuring Karma to use webpack for my tests, not to mention figuring out how to test single file components!
For this reason, in the next pages you will be guided through the process of configuring an environment ready for both Vue/Vuex development and testing. I think you will find the next pages quite useful.
In this chapter you will:
- set up the development environment using npm.
- install, configure and use webpack.
- install, configure and use vue-loader.
- set up the testing environment using Karma + Jasmine.