S.W.
S.W.

Reputation: 115

Use create-react-app with a local template?

I'm developing a cra template, but I can't seem to figure out how to try it out without publishing it to npm. I don't want to publish it until I'm sure it's working. How can I tell cra to use a local template?

Upvotes: 3

Views: 920

Answers (1)

S.W.
S.W.

Reputation: 115

The answer turns out to be to use

--template file:relative-path-to-template.

I was omitting the 'file:' part.

Thanks, Christiaan!

Upvotes: 2

Related Questions