praveenpuglia / vuetify-daterange-picker

The missing date range picker for Vuetify JS you have been looking for.
https://vuetify-daterange-picker.gitbook.io/docs
MIT License
197 stars 59 forks source link

DateRange component doesn't trigger any HMR while developing #8

Closed praveenpuglia closed 6 years ago

praveenpuglia commented 6 years ago

@vinaypuppal In App.vue, we should really be pointing the source DateRange.vue and not the dist version. https://github.com/praveenpuglia/vuetify-daterange-picker/blob/master/demo/App.vue#L20-L21 This will stop HMR from working for any source changes in DateRange.vue.

import DateRange from '../src/DateRange';

should be good enough for development.

praveenpuglia commented 6 years ago

I am gonna be fixing this with the next PR.

vinaypuppal commented 6 years ago

But I thought demo folder contains example on how to use this component. No problem change it to src file if it helps for development, we can add a code sandbox link to Readme on how to use this component.

praveenpuglia commented 6 years ago

Actually you are right. So what I am doing is keeping App.vue as is but adding the build step in dev server in watch mode. That should do the trick.

This to be precise.

npm run build -- -w & poi demo/index.js