Skip to content
This repository was archived by the owner on Apr 22, 2022. It is now read-only.

Latest commit

 

History

History
20 lines (16 loc) · 1.69 KB

File metadata and controls

20 lines (16 loc) · 1.69 KB

jspsych-react-cra

Overview

Getting started

  1. Install with npm install
  2. Add packages with npm i -D webpack-cli uglifyjs-webpack-plugin
  3. Add package with npm install -D babel-loader@8.1.0
  4. Build and bundle with npm run build

Notes

  • To avoid conflicts with react-scripts, package.json should NOT contain webpack-cli, uglifyjs-webpack-plugin, or babel-loader in the devDependencies until AFTER other packages have already been installed by step 1 above. If running into issues, delete all package-lock.json, yarn.lock, node_modules and follow steps 1-4 exactly in that order.
  • Related babel-loader troubleshooting found here.

To-do

  • If it's desired to make repo private, must provide private key in the package.json (see here).