front.js 789 B

1234567891011121314151617
  1. /**
  2. * Homepage bundle (→ build/front.js) — replaces the gulp `jsf` output v4-front.min.js.
  3. *
  4. * jQuery (exposed globally) + SVGMorpheus (the icon-morph lib) + the bespoke
  5. * front-page.js (which embeds jquery-color). No bootstrap — the homepage doesn't use it,
  6. * and messenger/terminal are dropped (dead). $/jQuery are also injected into front-page.js
  7. * via webpack ProvidePlugin so its internal IIFEs resolve.
  8. */
  9. import $ from 'jquery';
  10. window.$ = window.jQuery = $;
  11. // svg-morpheus ships a bare `var SVGMorpheus = …` (no export); exports-loader (see
  12. // webpack.config.js) surfaces it so we can put it back on window for front-page.js.
  13. import SVGMorpheus from 'svg-morpheus/compile/minified/svg-morpheus.js';
  14. window.SVGMorpheus = SVGMorpheus;
  15. import '../js/front-page.js';