Gowtham
Gowtham

Reputation: 767

How to add static JSON files to Webpack output/dist directory?

I am trying to add some static JSON files into webpack output directly for referring at run time.

Any suggestions on how to do this?

Upvotes: 2

Views: 2208

Answers (1)

cgatian
cgatian

Reputation: 22994

Use the CopyWebpackPlugin to copy the assets to the dist.

Upvotes: 7

Related Questions