By virtue of its plugin architecture, jsPsych is very extensible. However, since each plugin is contained in a separate JavaScript file, downloading a lot of plugins from a web-server can cause high server load and make your experiment load relatively slowly. The jsPsych_bunder bundles jsPsych and a list of plugins into a single file, so that only one JavaScript file needs to be included.
Clone the jsPsych repository to your hard drive, for example via the GitHub GUI.
Node and NPM can be downloaded via this link.
From this repo, download plugins.json and webpack.config.js. Put these files in the directory where you cloned jsPsych.
Open a command prompt and go to the directory on your hard drive where you cloned the jsPsych repository.
In the command prompt, run the following two statements:
npm install webpack
npm install webpack-cli
Now you're set to go!
The file plugins.json contains a JSON array with plugins you'd like to bundle with jsPsych. Put the plugins your experiment requires in this file.
Run the statement below to make a file jspsych.bundle.js. This file will contain jsPsych and the plugins you've listed in plugins.json.
webpack