Skip to content

astegmaier/stackoverflow-parcel-widget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parcel Widget Example

This project contains an example of how to build a component in react with Parcel2 that can be embedded as a global script in other, non-react pages.

It's a response to this stackoverflow question.

Test Instructions

  1. Run yarn to install dependencies
  2. Run yarn build:widget to build the react code with parcel. This will output a .css and .js file to test-consumer/dist-widget folder.
  3. Run yarn serve to serve test-consumer/index.html at http://localhost:8080. This page is vanilla html that embeds the build .js and .css files built in step #2

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published