Skip to content

Instantly share code, notes, and snippets.

@arsenetoumani
Created February 28, 2019 16:41
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 arsenetoumani/be73ae625b1495ae97a68e2190afc983 to your computer and use it in GitHub Desktop.
Save arsenetoumani/be73ae625b1495ae97a68e2190afc983 to your computer and use it in GitHub Desktop.
'use strict';
require("./app-styles"); // get app styles
require("../src/app/app.module"); // get app module
function importAll(r) {
r.keys().forEach(r);
}
// get all of the app's js and jsx files - excluding modules and spec files
importAll(
require.context("../src/app/", true, /^(?!.*\.module\.js$)^(?!.*\.(spec|test)\.(js|jsx)$).*\.(js|jsx)$/)
);
require('./app-templates'); // get app's templates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment