Hi everyone,
I’ve been trying to put together a site with Sage 9, and I can’t for the life of me figure out how to add jQuery into the main.js scripts file. It has changed since Sage 8, and the build fails with “npm run build” when I directly add jQuery there. Below is what the page specific Sage 9 main.js looks like now.
Do I need to specify “Init” and “Finalize” somehow? My guess is yes, but I’m not clear on how to do that.
const routes = {
// All pages
common,
// Home page
home,
// About us page, note the change from about-us to aboutUs.
aboutUs,
};
Thanks!