Vamshi Krishna Lakkars
Vamshi Krishna Lakkars

Reputation: 703

how to use NPM packages in production

If I use NPM packages for development, then should i install the same packages for production also or is there any alternate way to deploy with out them.

Thanks.

Upvotes: 0

Views: 254

Answers (2)

Giu
Giu

Reputation: 1952

I would suggest to never use npm packages directly for production but instead use a tool like webpack to bundle the scripts that are needed for your project.

source

Upvotes: 2

user3790694
user3790694

Reputation: 353

you can use NPM packages for development and you can create a gulp task to move your file from node_module to your dist directory for your production release. This is my approch

Upvotes: 0

Related Questions