How can I load my own js module with goog.provide and goog.require?

后端 未结 7 1051
小蘑菇
小蘑菇 2020-12-30 04:05

We are trying to switch the packaging for our project from dojo to google closure, but we haven\'t had any luck so far. Here is a simple example that illustrates what we are

相关标签:
7条回答
  • 2020-12-30 04:47

    Here's a little project that I've been working on that might be helpful to you: http://github.com/fintler/lanyard

    Take a look at the build.xml, the file named lanyard.js, and all of the files located in src/geom/*.

    The build.xml has an example of how to call calcdeps.py through ant for all of the js located in src. It may not be the best way to do things, but it's been working for me so far.

    0 讨论(0)
提交回复
热议问题