JavaScript dependency management

后端 未结 6 1945
清歌不尽
清歌不尽 2020-12-08 08:06

I am currently maintaining a large number of JS files and the dependency issue is growing over my head. Right now I have each function in a separate file and I manually main

6条回答
  •  忘掉有多难
    2020-12-08 08:28

    I have written a tool to do something like this: http://github.com/damonsmith/js-class-loader

    It's most useful if you have a java webapp and you structure your JS code in the java style. If you do that, it can detect all of your code dependencies and bundle them up, with support for both runtime and parse-time dependencies.

提交回复
热议问题