This project was bootstrapped with Create Cloud Block.
Below you will find some information on how to run scripts.
- Use to compile and run the block in development mode.
- Live reload is not supported currently.
- Use to build production code for your block inside
build
folder.
- Use to publish the block to NPM
- It will become available in Gutenberg Cloud in a few minutes
Include accordion.js
in your project, then use it like this:
import Accordion from './path/to/accordion';
const accordion = new Accordion();
accordion.init();