@mojoactive/swatches
v1.15.3
Published
A library for Swatch Switching
Downloads
54
Keywords
Readme
@mojoactive/swatches
A library for Swatch Switching
Building and running on localhost
First install dependencies:
npm install
To create a production build:
npm run build
Using in an application
In order to use this library in an application first install the dependency:
npm install @mojoactive/swatches -S
Then you can require the module manually:
import Swatches from "@mojoactive/swatches"; // with es6
const Swatches = require("@mojoactive/swatches"); // without es6
...
constructor() {
Swatches.config.CookieName = 'myCustomCookieName';
Swatches.init();
}