a tool for creating library(forked from create-react-app)
The document of create-react-app may still useful
npm install umd-pack
umd-pack need you to config library
in your package.json
for webpack output
{
"library": "MyLibrary"
}
if you want to config publicPath(when you deploy static files to CDN), config package.json
like below:
{
"homepage": "path/to/directory"
}