I have the following basic react structure
Project
|
--- src
|
--- App
|
--- file-tree-1
|
--- file-tree-2
If I run npm run start and npm run build then all the files within App are targeted, which is the correct behaviour.
However, I'd like to do something like the following pseudo code:
// The following would build and would only includes the files and folders under file-tree-1:
npm run start --use file-tree-1
npm run build --use file-tree-1
// The following would do the same, but targeting file-tree-2 files and folders only
npm run start --use file-tree-2
npm run start --use file-tree-2
I know the code above is not possible the way it is written. But can I achieve what is done there? I basically need to use the same code base for two separate outputs, but not sure how to do it. How can I customize the build files.
Thank you.