node.js - How can I modify and test javascript source code for a project which uses minified javascript code in production? -


i'm working on project uses js source files multiple directories , compiles them common dist/ directory used in production. 1 way can test changes js code make changes source code , reinstall entire project generate new dist/ directory. there easier , more practical way this?

as production , development environments (mostly) equal use source maps issue. way build js:

  1. js hint
  2. generate source maps
  3. concat js 1 file
  4. uglify using gulp , plugins. shouldn't hard find.

the benefits of aproach are:

  • serving small js file
  • no difference between dev , prod
  • readable js source debugging
  • no redeploy needed

Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -