A build tool CLI for simplifying and streamlining the build process for internal frontend projects in the Grab Taxi company, speed up build time and optimize performance. Support the Micro Frontend and make the dev experience smoother.
https://docs.google.com/document/d/1vrBsNyWoT91lkBWPt5pkej3dd15VhO8lCYshSjnuIbU
-
Setup @web-platform component registry using a
.npmrc
file. -
Install the package:
npm install @web-platform/build-tool
or
yarn add @web-platform/build-tool
web-platform-build-tool <action>
- rspack (default)
- webpack
Action | Description |
---|---|
build |
Builds the ReactJS app for production |
serve |
Starts the ReactJS app using build folder |
start |
Starts the ReactJS app in developer mode |
- Require to install this
@web-platform/build-tool
CLI package in the app first - Run
yarn link
in CLI's root folder - Run
yarn link @web-platform/build-tool
in app's root folder to link the package to this local CLI folder