Hi,
Got a bit of an issue on my woocommerce build. Using bedrock/Sage and latest versions of woo and wordpress. My common.js file is not being loaded on the my-account pages, so thats things like orders, downloads, addresses, account details - these are all front-end pages so things like my font-awesome icons and my custom basket functionality aren’t working on these pages.
These are the relevant bits in main.js:
// import local dependencies
import Router from './util/Router';
import common from './routes/common';
import home from './routes/home';
import aboutUs from './routes/about';
import woocommerceCheckout from './routes/checkout';
import wheelSearch from './routes/wheel-search';
import tyreSearch from './routes/wheel-search';
import tyreWheelPackages from './routes/packages';
import singleProduct from './routes/wheel-search';
import search from './routes/search';
/** Populate Router instance with DOM routes */
const routes = new Router({
// All pages
common,
// Home page
home,
// About Us page, note the change from about-us to aboutUs.
aboutUs,
woocommerceCheckout,
wheelSearch,
tyreSearch,
tyreWheelPackages,
singleProduct,
search,
});
Any help much appreciated!