giraffe_head
giraffe_head

Reputation: 319

How avoid relative paths (../../../../../) in import statement in the client side (React)

I'm using Elixir Phoenix framework with Brunch as build tool.

I know that Webpack has the "resolve" feature, can I do similar thing in my environment?

Do you have any other clean solution to this problem?

Upvotes: 2

Views: 360

Answers (1)

Paul Miller
Paul Miller

Reputation: 1960

You can just use absolute paths like: /components/forum/Post.

Upvotes: 0

Related Questions