the react-app inside this workspace are generated using this repository template
Official documentation of pnpm workspace
-
create root folder to maintain packages
-
add
pnpm-workspace.yaml
to define workspace configuration -
create new folder based on your workspace
-
try create project inside the folder you define in workspace configuration
-
run
pnpm install
in root workspace
- in your
package.json
file, add your module name based onname
field inpackage.json
file
{
"dependencies": {
"@your/workspace/module": "workspace:^"
}
}
- run
pnpm install
in your root workspace
Tailwind classes are being purged when you export the component outside of your module. Include your module into contents
array in tailwind.config
.
Will Liu post about configuring tailwind configuration
When you want to export module inside workspace, you can use exports
field in package.json
file.
Official documentation of using exports
field