What is the role of node in vue scaffolding webpack configuration?

question: when I use vue2.5.2 scaffolding to generate a webpack project, I find that it has a configuration node under the automatic generation file build/webpack.base.conf.js. What is it and what is it for?

Feb.28,2021

this is used to configure the packaging options for the node environment, which means that if your code is to be packaged and run on node, there will be these options


@ Xiamen Bing Thank you very much for your answer. According to your answer, I also found an explanation on Baidu: http://www.css88.com/doc/webp.. It says above, "this allows code originally written for the Node.js environment to run in other environments, such as browsers." The global variable or module of node is configured in node. So my understanding: if it is true, like js running in the browser can also use some global variables or modules of node. I have just learned node,. Please don't mind if I make a mistake.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e92775-471b4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e92775-471b4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?