This repository has been archived by the owner on Jan 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Installation
Alexey edited this page Jan 14, 2018
·
7 revisions
Unpkg.com provides NPM-based CDN links. The above link will always point to the latest Tuex release on NPM.
You can also use a specific version/tag via URLs like https://unpkg.com/[email protected]
npm install tuex --save
Or
npm i -S tuex
yarn add tuex
You must explicitly install Tuex via Vue.use() before utilizing it:
Vue.use(Tuex);
If using ES5 or commonjs, Tuex should be imported as follows:
var Tuex = require('Tuex');
// OR
var Tuex = require('Tuex/cjs');
ES6+/ES2015+ accepts both default import and precise one:
import Tuex from 'tuex';
// OR
import Tuex from 'tuex/esm';
TypeScript supports types only with default imports:
import Tuex from 'tuex';
Some text may be borrowed from official Vuex documentation