Create a POS System in Vue.js - Part 3
Tuesday, December 22, 2015
In the previous post, we reorganized our code into components. This allows us to reuse code only pieces of our code. However, our
index.html
and app.js
files had a bunch of extra code in them that would require us to sort through the next time we wanted to use the code in another project. There has to be a better way to organize this code, right? Well of course there is, or this would be the lamest blog post ever.
The solution is to move our code into subdirectories, each containing a component. Then we can use Browserify to bring it all together. My preferred method is to use Gulp with Browserify. So I will show you how to set it up.
0 comments