A webpack loader for the VueFort
models.
Supports hot-reloading during development.
npm i vue-fort-model-loader
Use named exports to export the model options.
export function state() {
return {
count: 0,
};
}
export const getters = {
countDouble() {
return this.count * 2;
},
};
export const methods = {
inc() {
this.count++;
},
};
Use the loader to define and import the model.
import model from 'vue-fort-model-loader!./path/to/model';