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:
- js hint
- generate source maps
- concat js 1 file
- 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
Post a Comment