What's the purpose of gruntjs server task?

前端 未结 3 1247
庸人自扰
庸人自扰 2020-12-07 10:36

I\'m learning how to propel use gruntjs. I found the server task but I can\'t get the point.

Can i use the server task mapping concatenated/minified files to test my

3条回答
  •  甜味超标
    2020-12-07 11:12

    The point of the server task is to have quick and dirty access to static files for testing. grunt server IS NOT a production server environment. It really should only be used during the grunt lifecycle to get static testing assets to the testing environment. Use a full-fledged server, possibly controlled by the NPM lifecycle scripts, for production environments.

提交回复
热议问题