A
A
Alex Polyakh2017-08-03 13:16:39
npm
Alex Polyakh, 2017-08-03 13:16:39

How to get rid of the eternal prescribing of the output to the root of the project (using creact ract app)?

The problem is ../../ I always write to go to the root of the project.
Because I don't have direct access to webpack.config from my template creacte react app.
Who solved this problem please tell me?!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Frozen Coder, 2017-08-03
@PolyakhAleksandr

Use .env config, just add NODE_PATH variable to .env file:
https://habrahabr.ru/company/plarium/blog/326520/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question