This is and example of the folder structure and co...
# suitecommerce
c
This is and example of the folder structure and contents of the entrypoint file. When I run local, header and footer is not found ExtensionFolder --Modules ----Global ------JavaScript --------entrypoint.js ----Header ------JavaScript --------header.js ----Footer ------JavaScript --------footer.js define(‘entrypoint’, [ ‘../../HeaderJavaScript/header’, ‘../../HeaderJavaScript/footer’ ], function ( header, footer ) { ‘use strict’; });
s
Just use
Header
and
Footer
in your dependencies array. You don't need to include directory navigation
(Assuming those files are declared as 'Header' and 'Footer' in their files.)
c
I remember that post… seems so long ago now
s
Yes, it was from The Before Times