When you define more than one Sass file in an exte...
# suitecommerce
k
When you define more than one Sass file in an extension, do you need to define the additional Sass files as imports to the Sass file defined as the entry point?
s
Good question. I'm not sure I've written an extension with more than Sass file, but looking at the NetSuite extensions, our developers have written them so that all Sass files are imported into one main Sass file. Whether or not this means you have to I'm not sure, but the manifest has a notion of a Sass file entry point, so I would think that yes, you do.
k
I didn’t find any documentation related to extensions in SuiteCommerce Developers website about it. When I was reviewing the documentation related to CCT, I happened across some documentation related to a theme and noticed the @import statements. I am testing now.
@Steve Goldberg that was it. I needed to define the additional Sass files using @import statements in the Sass file that is defined as the entry point Sass file in the manifest. Extending the CSS classes and using the variables defined in the theme’s BaseSassStyles module is working. I did not need to define it as a dependency.
@Steve Goldberg, it would be very helpful if this was added to the Extension development documentation, especially in the section about adding additional modules to an extension. Can you tell the folks that handle the SuiteCommerce Documentation?
s
I sure can
k
Thanks.
f
I have created an issue record to request this to be documented. Thank you @Keith Fetterman