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.
-
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
public
folder, is it necessary to havenode_modules
in the production?I believe the webapck will bundle the dependencies of front-end too.
But to answer my own question,
node_modules
will be required for the dependencies of the backend (Sails) since thenpm run build
will only bundle front-end React code.So, we should have the
node_modules
in the production for Sails.Am I correct regarding the build process and the
node_modules
dependencies? If not, could you kindly brief me.Thanks!
Beta Was this translation helpful? Give feedback.
All reactions