Sass

Documentation article about Sass

·1 min read·View Oracle Docs

Sass

Sass

The sass object declares the paths to each application entry point and all Sass files to be loaded when you deploy. If you introduce a new Sass file into your extension workspace, you must manually add it to the files array within the sass object.

Note:

If manually listing Sass files, declare each file in an order that makes the most semantic sense within the Sass hierarchy. If the developer tools automatically added a Sass file, the entry is always at the end of the files array. However, your dependencies may require that this order be changed. Check the order in which a file was added to the array because the developer tools always add a file to the end of the array.

json
1//...
2"sass": {
3 "entry_points": {
4 "shopping": "Modules/MyCoolModule/Sass/_mycoolextension-mycoolmodule.scss",
5 "myaccount": "Modules/MyCoolModule/Sass/_mycoolextension-mycoolmodule.scss",
6 "checkout": "Modules/MyCoolModule/Sass/_mycoolextension-mycoolmodule.scss"
7 },
8 "files": [
9 "Modules/MyCoolModule/Sass/_mycoolextension-mycoolmodule.scss",
10 "Modules/MyCoolModule/Sass/_mycoolmodule.scss",
11 "Modules/AdditionalCoolModule/Sass/_mycoolextension-additionalcoolmodule.scss",
12 "Modules/AdditionalCoolModule/Sass/_additionalcoolmodule.scss"
13 "Modules/AdditionalCoolModule/Sass/sass-extension_myNewSassFile.scss"
14 ]
15},
16//...

Frequently Asked Questions (4)

Do I need to manually add new Sass files to the deployment configuration in NetSuite?
Yes, when you introduce a new Sass file into your extension workspace, you must manually add it to the files array within the sass object.
In what order should I list Sass files in the configuration?
You should declare each Sass file in an order that makes semantic sense within the Sass hierarchy. Dependencies may require adjustments to the order, even though the developer tools automatically add new Sass files to the end of the array.
What happens if I don't change the order of automatically added Sass files?
If you don't adjust the order, dependencies might break if they expect a different loading sequence. The developer tools add files to the end of the array, which may not always align with required dependencies.
Is adjusting the order of Sass files acquired automatically by developer tools necessary?
Yes, checking and adjusting the order of Sass files in the configuration array is necessary to ensure that dependencies are satisfied and semantic sense is maintained within the Sass hierarchy.
Source: Sass Oracle NetSuite Help Center. This article was generated from official Oracle documentation and enriched with additional context and best practices.

Was this article helpful?

More in General

View all General articles →