Using Vue with WebPack

I wanted to transfer my existing script to WebPack bundle.  The application is a simple page that uses  Vue.js.   Note that I only read Introduction part of Vue and started using it.  At that time, I did not even know the concept of Vue component files .  Thus my application was entirely in one JavaScript file. I rewrote it using typescript.   WebPack bundling was necessary to make it work. I had to decipher minor (but important) detail on NPM’s Vue  module that should be used along with WebPack.  If I were to use a Vue package from node_modules/ and bundle it with WebPack, then the default module that will be […]