vue-fort-model-loader

1.0.2 • Public • Published

vue-fort-model-loader

A webpack loader for the VueFort models.

Supports hot-reloading during development.

setup

npm i vue-fort-model-loader

usage

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';

Package Sidebar

Install

npm i vue-fort-model-loader

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

2.65 kB

Total Files

4

Last publish

Collaborators

  • seregpie