How to Bundle Your JavaScript Projects Using webpack
· 阅读需 7 分钟
Scenario
I use webpack to bundle some JS scripts today, see openapi-scripts/pull/16. The following lists details of the project and reasons for bundling:
- The
openapi-scripts
repository is used to post-process the OpenAPI specification file generated bybuf.build
to be compatible with Redocly. - To use JS scripts, I build a Docker image
ghcr.io/oreoxmt/openapi-scripts
. - The Docker image is under rapid development, and it takes a long time to pull the latest image due to 3901 node modules.