node.js - Please tell me how to use pm2 to enable the webpack-dev-server command
ringa_lee
ringa_lee 2017-05-24 11:38:34
0
1
1760

There is a command in package.json that is enabled using webpack-dev-server, such as

"watch": "webpack-dev-server --port 8088 --hide-modules",

To use pm2 to open the service, use pm2 start XXX.js. Please tell me how to use pm2 to open this webpack-dev-server command

ringa_lee
ringa_lee

ringa_lee

reply all(1)
洪涛

PM2 is generally used in the production environment, and webpack-dev-server is used in the development environment. In the development environment, nodemon should be used for process management.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!