add version to min.js
(cherry picked from commit edba79e)
dist directory will be tracked
(cherry picked from commit 5f3192f)