Installation - Raiondesu/Tuex GitHub Wiki

Direct Download / CDN

https://unpkg.com/tuex

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

npm install tuex --save

Or

npm i -S tuex

Yarn

yarn add tuex

You must explicitly install Tuex via Vue.use() before utilizing it:

Vue.use(Tuex);

ECMAScript versions & TypeScript

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