app.js 716 B

123456789101112131415161718192021222324
  1. require.config({
  2. baseUrl: "lib",
  3. paths: {
  4. "leaflet": "../bower_components/leaflet/dist/leaflet",
  5. "leaflet.label": "../bower_components/Leaflet.label/dist/leaflet.label",
  6. "chroma-js": "../bower_components/chroma-js/chroma.min",
  7. "moment": "../bower_components/moment/min/moment-with-locales.min",
  8. "tablesort": "../bower_components/tablesort/tablesort.min",
  9. "tablesort.numeric": "../bower_components/tablesort/src/sorts/tablesort.numeric",
  10. "helper": "../helper"
  11. },
  12. shim: {
  13. "leaflet.label": ["leaflet"],
  14. "tablesort": {
  15. exports: "Tablesort"
  16. },
  17. "tablesort.numeric": ["tablesort"],
  18. "helper": []
  19. }
  20. })
  21. require(["main", "helper"], function (main) {
  22. main()
  23. })