Skip to content

Instantly share code, notes, and snippets.

@hatertron3000
Created October 5, 2019 22:50
Show Gist options
  • Save hatertron3000/d9e6b752228182006dfbcc17f583cb5a to your computer and use it in GitHub Desktop.
Save hatertron3000/d9e6b752228182006dfbcc17f583cb5a to your computer and use it in GitHub Desktop.
customClasses object from app.js that maps custom template files to the appropriate JavaScript module
const customClasses = {
'pages\\custom\\category\\react-demo': () => import('./theme/custom/react-demo'), // Windows
'pages/custom/category/react-demo': () => import('./theme/custom/react-demo'), // Mac/Linux
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment