Build process & node_modules in production
#84
Replies: 2 comments 1 reply
-
|
So, there are 2 ways to go about You need the But yes, you need some form of |
Beta Was this translation helpful? Give feedback.
-
|
I'm re-opening this discussion, just so it's more easily visible. |
Beta Was this translation helpful? Give feedback.
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!
Beta Was this translation helpful? Give feedback.
All reactions