W
W
Worddoc2019-01-14 21:08:27
JavaScript
Worddoc, 2019-01-14 21:08:27

Create-react-app: How to change the parsed directory?

Good day!
The problem is this: there is a project that stores back and front. a specific directory is allocated for the front, let it be: /frontend/
Since create-react-app is now processing a directory that is in the same directory as package.json, the question arises: how to change the directory being processed without using npm eject?
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
Chingiz Mammadov, 2019-01-15
@ChingizMuellim

Maybe I did not understand the question, but, Why change the processed directory? Just put this folder in src. During the build, the entire front will still be where it needs to be. Just point the final module to index.js. because in the end everything gathers into it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question