A minimum viable React quiz thanks to Jared Palmer and Parcel Bundler
Clone and install deps
git clone [email protected]:mattrmedia/react-quiz.git
cd react-quiz
yarn
yarn start
Then open http://localhost:1234
and edit index.js
and press save. Parcel
will automagically hot reload you files whenever you make changes.
npm run build
This will compile your JS and copy your index.html
to the dist
folder which
you can deploy wherever as a good ol' webpage.
Parcel uses PostCSS plugins to manage CSS assets.
I've included autoprefixer
for vendor prefixing with the same setup as
create-react-app
. You can find and modify the PostCSS setup in package.json
.
If you'd rather keep your PostCSS setup in a dotfile, you can delete the
postcss
key from package.json
, and place its contents in a .postcssrc
file
too.