payment-manager-v1
v1.0.0
Published
A simple node package bundled with Webpack
Downloads
76
Readme
Payment Manager
This is a Next.js project bootstrapped with create-next-app
.
Getting Started
First, run :
npm install
Second, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx
. The page auto-updates as you edit the file.
This project uses next/font
to automatically optimize and load Inter, a custom Google Font.
Script Creation
Defining entry point to webpack
To bundle the PaymentManager.tsx component in simplified JS that can be read by the browser, we are defining the entrypoint in entry.ts file. The entry.ts file exports the Payment Manager as default component.
Bundling the component with webpack
Assuming you are done installing the dependencies of payment-manager app,
run the following command :
npx webpack
This will directly use the webpack package and will bundle the component as per the entry point defined in the webpack configuration