Repository navigation
Build process & node_modules in production
#84
MaheshkumarSundaram
started this conversation in
General
Replies: 2 comments 1 reply
|
So, there are 2 ways to go about You need the But yes, you need some form of |
1 reply
|
I'm re-opening this discussion, just so it's more easily visible. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi @neonexus ,
It may sound silly, but I wnated to make sure I understand the build process correctly.
As we are building our front-end to the
publicfolder, is it necessary to havenode_modulesin the production?I believe the webapck will bundle the dependencies of front-end too.
But to answer my own question,
node_moduleswill be required for the dependencies of the backend (Sails) since thenpm run buildwill only bundle front-end React code.So, we should have the
node_modulesin the production for Sails.Am I correct regarding the build process and the
node_modulesdependencies? If not, could you kindly brief me.Thanks!
All reactions