Skip to content

Instantly share code, notes, and snippets.

@somebody32
Created February 6, 2016 19:47
Show Gist options
  • Select an option

  • Save somebody32/cbe1b3f8dc9e591e9833 to your computer and use it in GitHub Desktop.

Select an option

Save somebody32/cbe1b3f8dc9e591e9833 to your computer and use it in GitHub Desktop.

Revisions

  1. somebody32 created this gist Feb 6, 2016.
    20 changes: 20 additions & 0 deletions index.diff
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    import Backbone from 'backbone';
    import $ from 'jquery';

    import Router from './router';

    $(() => {
    new Router();

    - require.ensure([], require => {
    - const AboutApp = require('./apps/about/').default;
    - AboutApp();
    - });

    - require.ensure([], require => {
    - const HeavyApp = require('./apps/heavy/').default;
    - HeavyApp();
    - });

    Backbone.history.start();
    });