Skip to content
This repository has been archived by the owner on Apr 10, 2020. It is now read-only.
/ min-react Public archive

Do you really need to install thousands of files to run your app?

Notifications You must be signed in to change notification settings

CoffeeAndCode/min-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample React App

You can run the app with a simple Nginx Docker command similar to:

docker run -p 8000:80 --rm -v "$(pwd)":/usr/share/nginx/html:ro nginx:alpine

Troubleshooting

mjs file extension support

Unfortunately, Nginx does not support the mjs mimetype out of the box so we have to add a custom config to add the type:

# /etc/nginx/conf.d/mimetypes.conf
types {
  application/javascript mjs;
}

Alternatively, you could use something like serve by running npx serve. You could even install it locally so it wouldn't attempt to fetch the package each time you run the command.

About

Do you really need to install thousands of files to run your app?

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published