Skip to content

Instantly share code, notes, and snippets.

@somebody32
Created February 6, 2016 19:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save somebody32/cbe1b3f8dc9e591e9833 to your computer and use it in GitHub Desktop.
Save somebody32/cbe1b3f8dc9e591e9833 to your computer and use it in GitHub Desktop.
Removing mini apps from index.js
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();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment