title: How to import moment.js into vue
body: <p>I am trying to use moment.js within a very simple vue build. I have added moment.js to the body of my index page, but when i try to use moment.js I keep getting the console error "ReferenceError: moment is not defined".</p>
  
  <pre><code>// registering the date picker
    components: {
      vuejsDatepicker,
  },    
  
  
  // the component with some props 
  &lt;vuejs-datepicker
                      :value="this.default"
                      name="datepicker"
                      :clear-button="true"
                      :typeable="true"
                      v-model="GetPaymentDate"
                      :format="customFormatter"
                      input-class="form-control"
                      &gt;&lt;/vuejs-datepicker&gt;
  
   methods: {
  
   // the method to produce formated date
      customFormatter(date) {
        return moment(date).format('MMMM Do YYYY, h:mm:ss a');
      }
  },
  
  // where Im trying to display formated date - this is the bit that breaks things - the | formatDate
  &lt;p&gt;The delivery Date is &lt;b&gt;{{ GetPaymentDate | formatDate}}&lt;/b&gt;&lt;/p&gt;
  
  
  // the order of my scripts on the index file 
  &lt;script src="vue-moment.js"&gt;&lt;/script&gt;
  &lt;script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"&gt; . &lt;/script&gt;
  &lt;script src="https://unpkg.com/vuejs-datepicker"&gt;&lt;/script&gt;
  </code></pre>