Files
sage/assets/scripts/main.js
QWp6t 4adbc347c2 Fix browsersync (#1815)
* Update dependencies
* Remove monkey-hot-loader
* Use webpack-merge instead of util/mergeWithConcat()
* Fix: copyglobs plugin `after-emit` is bound twice
* NoErrorsPlugin() is deprecated in favor of NoEmitOnErrorsPlugin()
* webpack-dev-middleware should use same publicPath as compiler
* webpack-hot-middleware/client should be prepended to entries
* Browser should refresh when HMR fails
* Bootstrap package.json has correct main property
Sometime between alpha 2 and 3, package.json was pointing to nonexistent
file, so we referenced file manually in our repo. Underlying issue was
fixed by alpha 4, so we no longer have to specify full path to file.
2017-01-18 23:58:37 -08:00

26 lines
595 B
JavaScript

/** import external dependencies */
import 'jquery';
import 'bootstrap';
/** import local dependencies */
import Router from './util/Router';
import common from './routes/common';
import home from './routes/home';
import aboutUs from './routes/about';
/**
* Populate Router instance with DOM routes
* @type {Router} routes - An instance of our router
*/
const routes = new Router({
/** All pages */
common,
/** Home page */
home,
/** About Us page, note the change from about-us to aboutUs. */
aboutUs,
});
/** Load Events */
jQuery(document).ready(() => routes.loadEvents());